summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-03-08 12:45:23 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-03-08 12:45:23 +0000
commit07e607ebad7184fe8b548ba9d61a1d1e57177201 (patch)
tree2b537e297b0eeaed2501ff631e45ceae0f6542a0 /gtk2_ardour/editor_selection.cc
parentd2bcfc07471645214e81b2d7284aabd16c6e25df (diff)
reinstate (de)selection operations that should happen on mouse button release
git-svn-id: svn://localhost/ardour2/branches/3.0@9104 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r--gtk2_ardour/editor_selection.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index be7daf4ce4..72c115738c 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -522,7 +522,6 @@ Editor::set_selected_regionview_from_click (bool press, Selection::Operation op,
switch (op) {
case Selection::Toggle:
-
if (selection->selected (clicked_regionview)) {
if (press) {
@@ -533,11 +532,10 @@ Editor::set_selected_regionview_from_click (bool press, Selection::Operation op,
button_release_can_deselect = true;
} else {
-
if (button_release_can_deselect) {
/* just remove this one region, but only on a permitted button release */
-
+
selection->remove (clicked_regionview);
commit = true;