From 0b7298e22e3b739b462cb8e42c307154283698c2 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 11 Dec 2017 10:03:15 -0600 Subject: Fix another case where: a Range selection must enforce some tracks selected as well. --- gtk2_ardour/editor_selection.cc | 8 ++++++++ 1 file changed, 8 insertions(+) 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) { -- cgit v1.2.3