From 3d338391823d63b12b26bb5784fda41c7669a7c0 Mon Sep 17 00:00:00 2001 From: GZharun Date: Tue, 9 Dec 2014 12:24:13 +0200 Subject: [PATCH] [Summary] Track selection must not impact on region selection performed by pressing Shift+click --- gtk2_ardour/editor_selection.cc | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 95d0f27ee5..47f10e782b 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -845,20 +845,10 @@ Editor::set_selected_regionview_from_click (bool press, Selection::Operation op) /* 2. find all the tracks we should select in */ set relevant_tracks; - - for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) { - RouteTimeAxisView* r = dynamic_cast (*i); - if (r) { - relevant_tracks.insert (r); - } - } - set already_in_selection; - if (relevant_tracks.empty()) { - - /* no tracks selected .. thus .. if the - regionview we're in isn't selected + { + /* if the regionview we're in isn't selected (i.e. we're about to extend to it), then find all tracks between the this one and any selected ones.