From 16ca4e0f9a4ffc87e8e572b8d69767648c2170ae Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 5 Aug 2014 15:42:06 -0500 Subject: Initial steps towards usable range-based automation editing. TODO: needs undo. only works in top quarter of automation lane. selection model feels weird sometimes. needs to show gain curve when you are using Range tool --- gtk2_ardour/editor_selection.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/editor_selection.cc') diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 9c05c9f924..4bc622ad2c 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -185,12 +185,12 @@ Editor::set_selected_track_as_side_effect (Selection::Operation op) return; } - if (!clicked_routeview) { - return; + RouteGroup* group = NULL; + if (clicked_routeview) { + group = clicked_routeview->route()->route_group(); } bool had_tracks = !selection->tracks.empty(); - RouteGroup* group = clicked_routeview->route()->route_group(); RouteGroup& arg (_session->all_route_group()); switch (op) { -- cgit v1.2.3