diff options
author | Robin Gareus <robin@gareus.org> | 2015-05-03 21:34:17 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-05-03 21:34:17 +0200 |
commit | b2a622b73c70b92542ac43b90592ffa84660a180 (patch) | |
tree | a3310d8bf6e3c19a399f04d8633058d95399abe8 | |
parent | a9bc95a911de06be737d87edd387b3a572def9b3 (diff) |
de-select other strips when re-selecting a strip
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 54d97c36de..f046436f92 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -676,7 +676,10 @@ Mixer_UI::strip_button_release_event (GdkEventButton *ev, MixerStrip *strip) /* primary-click: toggle selection state of strip */ if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) { _selection.remove (strip); - } + } else if (_selection.routes.size() > 1) { + /* de-select others */ + _selection.set (strip); + } } else { if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) { _selection.add (strip); |