summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-12-02 20:56:33 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-12-02 20:56:33 +0000
commit159b8face74f8ba8da5e1e4225aed0c384ac9dc2 (patch)
tree77ff0006986f8e4d72761da328978e57df9ff45c /gtk2_ardour/editor_mouse.cc
parent67e842bf4c5a9bab0ef3532a680c81e826ea4940 (diff)
allow button release events to be processed for region selection ops
git-svn-id: svn://localhost/ardour2/branches/3.0@13591 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index ad50f744ce..97cbc4a9ff 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -599,7 +599,7 @@ Editor::button_selection (ArdourCanvas::Item* /*item*/, GdkEvent* event, ItemTyp
switch (item_type) {
case RegionItem:
if (press) {
- if ( mouse_mode != MouseRange ) {
+ if (mouse_mode != MouseRange) {
set_selected_regionview_from_click (press, op);
} else {
/* don't change the selection unless the
@@ -611,6 +611,10 @@ Editor::button_selection (ArdourCanvas::Item* /*item*/, GdkEvent* event, ItemTyp
set_selected_track_as_side_effect (Selection::Set);
}
}
+ } else {
+ if (mouse_mode != MouseRange) {
+ set_selected_regionview_from_click (press, op);
+ }
}
break;