Equivalent fix for #7429 for the mixer
authorJohannes Mueller <github@johannes-mueller.org>
Thu, 20 Jul 2017 16:57:09 +0000 (18:57 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 20 Jul 2017 19:05:07 +0000 (15:05 -0400)
The previous commit addressed only the behavior of clicking a route in the
editor window. Now we handle the same issue in the mixer window.

gtk2_ardour/mixer_ui.cc

index 1a4a897a72de5924e289a668bed814bed495bcf2..d982e5a30142f72e57a88b08c14afbcfbcced823 100644 (file)
@@ -903,6 +903,11 @@ Mixer_UI::strip_button_release_event (GdkEventButton *ev, MixerStrip *strip)
                                /* de-select others */
                                _selection.set (strip);
                        }
+                       PublicEditor& pe = PublicEditor::instance();
+                       TimeAxisView* tav = pe.time_axis_view_from_stripable (strip->stripable());
+                       if (tav) {
+                               pe.set_selected_mixer_strip (*tav);
+                       }
                } else {
                        if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
                                _selection.add (strip, true);