make set_selection_from_region do something visible
authorBen Loftis <ben@harrisonconsoles.com>
Fri, 9 Jan 2015 17:14:34 +0000 (11:14 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Fri, 9 Jan 2015 18:21:10 +0000 (12:21 -0600)
gtk2_ardour/editor_selection.cc

index 518bfe04721caae7bd3b82290710b1560b18fdab..117459263cecb17851692310070301072e7a260c 100644 (file)
@@ -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);
        }