Clicking already-selected region should clear other selections. Thanks to nick_m
authorBen Loftis <ben@harrisonconsoles.com>
Tue, 12 Aug 2014 19:40:43 +0000 (14:40 -0500)
committerBen Loftis <ben@harrisonconsoles.com>
Tue, 12 Aug 2014 19:40:43 +0000 (14:40 -0500)
gtk2_ardour/editor_selection.cc

index 4bc622ad2c0aa94afa9d56d434055fc2368a6a3e..26643bddd57a378e9603085fa0266de0693fc519 100644 (file)
@@ -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;