Don't move track into view due to indirect selection
authorRobin Gareus <robin@gareus.org>
Fri, 20 Oct 2017 17:08:48 +0000 (19:08 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 20 Oct 2017 17:08:48 +0000 (19:08 +0200)
This fixes an issue with grouped tracks, starting a [range] selection
on the bottom-most. Due to group-selection all tracks in the group
are selected. Previously this vertically-scrolled to move the
top-most into view, which could move the bottom-most out of view.

gtk2_ardour/editor_selection.cc

index d705189cdf20591266b5ed07c698748e01dbdfed..a263a4e1f7c08deb5042e02f1825e97c135e5581 100644 (file)
@@ -191,6 +191,8 @@ Editor::set_selected_track_as_side_effect (Selection::Operation op)
                return;
        }
 
+       PBD::Unwinder<bool> uw (_track_selection_change_without_scroll, true);
+
        RouteGroup* group = NULL;
        if (clicked_routeview) {
                group = clicked_routeview->route()->route_group();