diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-12 06:55:44 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-12 06:55:44 +0200 |
commit | 23bb15dcf1848833557715a44a7d91c1ba8787be (patch) | |
tree | 94d3b8f58a3cd1c855d894f83bfaee9141297764 /gtk2_ardour/mixer_ui.cc | |
parent | fd8053da9eaf5e97aaa978d971410d4f246c7138 (diff) |
Honor groups for mixer selection
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 35e8ecd516..02391a3a44 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -897,14 +897,14 @@ Mixer_UI::strip_button_release_event (GdkEventButton *ev, MixerStrip *strip) if (_selection.selected (strip)) { /* primary-click: toggle selection state of strip */ if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) { - _selection.remove (strip); + _selection.remove (strip, true); } else if (_selection.axes.size() > 1) { /* de-select others */ _selection.set (strip); } } else { if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) { - _selection.add (strip); + _selection.add (strip, true); } else if (Keyboard::modifier_state_equals (ev->state, Keyboard::RangeSelectModifier)) { /* extend selection */ @@ -952,7 +952,7 @@ Mixer_UI::strip_button_release_event (GdkEventButton *ev, MixerStrip *strip) if (found_another) { PresentationInfo::ChangeSuspender cs; for (vector<MixerStrip*>::iterator i = tmp.begin(); i != tmp.end(); ++i) { - _selection.add (*i); + _selection.add (*i, true); } } else { _selection.set (strip); //user wants to start a range selection, but there aren't any others selected yet |