fix mis-handling of button press events on rec-enable that ought to forward to Bindab...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 8 Oct 2009 18:09:26 +0000 (18:09 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 8 Oct 2009 18:09:26 +0000 (18:09 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5758 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/route_ui.cc

index 38629e35b43de67e2c8d4cae7db210c6b71e82e9..73a9d59540ce70f0589476b6cc6468ce1adfb5c4 100644 (file)
@@ -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))) {