summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-12-11 10:03:15 -0600
committerBen Loftis <ben@harrisonconsoles.com>2017-12-11 10:51:33 -0600
commit0b7298e22e3b739b462cb8e42c307154283698c2 (patch)
treef48f9e84eb28dc2c826a685e6882145a2fe1a16f /gtk2_ardour
parentaab02cac3d23a5f8e9dd3f78867d72964866a994 (diff)
Fix another case where: a Range selection must enforce some tracks selected as well.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_selection.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index 79cda34f15..a060f93d04 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -1839,7 +1839,15 @@ void
Editor::set_selection_from_range (Location& loc)
{
begin_reversible_selection_op (X_("set selection from range"));
+
selection->set (loc.start(), loc.end());
+
+ // if no tracks are selected, enable all tracks
+ // (_something_ has to be selected for any range selection, otherwise the user won't see anything)
+ if ( selection->tracks.empty() ) {
+ select_all_tracks();
+ }
+
commit_reversible_selection_op ();
if (!get_smart_mode () || mouse_mode != Editing::MouseObject) {