From aed4ab6ec95d674503d580ea99a7a343255d33e3 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 12 Aug 2014 14:40:43 -0500 Subject: Clicking already-selected region should clear other selections. Thanks to nick_m --- gtk2_ardour/editor_selection.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/editor_selection.cc') diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 4bc622ad2c..26643bddd5 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -640,8 +640,14 @@ Editor::set_selected_regionview_from_click (bool press, Selection::Operation op) selection->set (all_equivalent_regions); commit = true; } else { - /* no commit necessary: clicked on an already selected region */ - goto out; + /* clicked on an already selected region */ + if (press) + goto out; + else { + get_equivalent_regions(clicked_regionview, all_equivalent_regions, ARDOUR::Properties::select.property_id); + selection->set(all_equivalent_regions); + commit = true; + } } break; -- cgit v1.2.3