From 38cb16f52138bb07dfcaf73f6c5fb3bf3ecc768e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 3 Jun 2021 14:52:17 -0600 Subject: [PATCH] in ripple all edit mode, extend-region selection operation works across all tracks --- gtk2_ardour/editor_selection.cc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index e5d7c5bfc8..6fbc931c72 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -837,10 +837,19 @@ Editor::set_selected_regionview_from_click (bool press, Selection::Operation op) 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); + if (Config->get_edit_mode() == RippleAll) { + for (TrackSelection::iterator i = track_views.begin(); i != track_views.end(); ++i) { + RouteTimeAxisView* r = dynamic_cast (*i); + if (r) { + relevant_tracks.insert (r); + } + } + } else { + for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) { + RouteTimeAxisView* r = dynamic_cast (*i); + if (r) { + relevant_tracks.insert (r); + } } }