From: Ben Loftis Date: Fri, 9 Jan 2015 17:14:34 +0000 (-0600) Subject: make set_selection_from_region do something visible X-Git-Tag: 4.0-rc1~700 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=a6e45a471a2af53a58ad28e769b232075cabab92;p=ardour.git make set_selection_from_region do something visible --- diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 518bfe0472..117459263c 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1541,6 +1541,12 @@ Editor::set_selection_from_region () } selection->set (selection->regions.start(), selection->regions.end_frame()); + + //we must now select tracks, because otherwise set_selection_from_region would appear to do nothing + //perhaps too drastic; perhaps the user really only wants the region's track selected + //but I can't think of any use-case for that (why wouldn't you just select the region?) + select_all_tracks(); + if (!Profile->get_sae()) { set_mouse_mode (Editing::MouseRange, false); }