ensure mixer shows a recently selected strip
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 28 Jan 2017 10:46:04 +0000 (11:46 +0100)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 28 Jan 2017 10:46:04 +0000 (11:46 +0100)
This doesn't guarantee that is it the MOST recently selected strip

gtk2_ardour/mixer_ui.cc

index 5192a90abc99ba98a1721063fdd6f2a90bbbf126..05c2a51f628a631f59b1c5a4c663e6889ec1f741 100644 (file)
@@ -849,6 +849,10 @@ Mixer_UI::sync_treeview_from_presentation_info (PropertyChange const & what_chan
                                _selection.remove (*i);
                        }
                }
+
+               if (!_selection.axes.empty()) {
+                       move_stripable_into_view ((*_selection.axes.begin())->stripable());
+               }
        }
 
        redisplay_track_list ();