From 291aec468fe4646aa1e355f2503d349555019e54 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 4 Jul 2016 12:45:29 -0400 Subject: use session stripable selection API and remove old ControlProtocol signals to talk to GUI etc. --- libs/surfaces/generic_midi/midifunction.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libs/surfaces/generic_midi') diff --git a/libs/surfaces/generic_midi/midifunction.cc b/libs/surfaces/generic_midi/midifunction.cc index 4b5faa7018..4d2b19fdfd 100644 --- a/libs/surfaces/generic_midi/midifunction.cc +++ b/libs/surfaces/generic_midi/midifunction.cc @@ -165,14 +165,9 @@ MIDIFunction::execute () case Select: if (!_argument.empty()) { - /* this uses only the numerical orderpart of a - PresentionInfo, because it only sets the lower 32 - bits of a 64 bit value. This will be interpreted - as a request to select only Routes. - */ uint32_t rid; sscanf (_argument.c_str(), "%d", &rid); - _ui->SetStripableSelection (rid); + _ui->toggle_selection (rid, ARDOUR::PresentationInfo::Flag (ARDOUR::PresentationInfo::Route|ARDOUR::PresentationInfo::VCA)); DEBUG_TRACE (DEBUG::GenericMidi, string_compose ("Function: SetRouteSelection = %1\n", rid)); } break; -- cgit v1.2.3