summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-10-08 18:09:26 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-10-08 18:09:26 +0000
commit536cec216e93f8ca99bcd14461a1a46419e9db2f (patch)
treeaec98c905c6995d1c1c1de6a9a0a42e6e8bf79d1
parent8795fc3e031896e56e08ea20303e85f51c9d5934 (diff)
fix mis-handling of button press events on rec-enable that ought to forward to BindableButton
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5758 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/route_ui.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc
index 38629e35b4..73a9d59540 100644
--- a/gtk2_ardour/route_ui.cc
+++ b/gtk2_ardour/route_ui.cc
@@ -449,10 +449,9 @@ RouteUI::rec_enable_press(GdkEventButton* ev)
if (!ignore_toggle && is_track() && rec_enable_button) {
- if (Keyboard::is_button2_event (ev) && Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
+ if (Keyboard::is_button2_event (ev)) {
- // do nothing on midi bind event
- return false;
+ return rec_enable_button->on_button_press_event (ev);
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ModifierMask (Keyboard::PrimaryModifier|Keyboard::TertiaryModifier))) {