diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-21 10:10:26 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-21 10:10:26 +0000 |
commit | ca993f56d6c808656ca5cfa088bd66455f60c0d4 (patch) | |
tree | b4464becf91e1f2283c8489c850e097551ddbe42 /gtk2_ardour/route_ui.cc | |
parent | d52012f3987129a773d0c0ca302c9e93fb707cb3 (diff) |
make solo lock/safe button only respond to mouse button1 (#4691)
git-svn-id: svn://localhost/ardour2/branches/3.0@12354 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r-- | gtk2_ardour/route_ui.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index 64ba5b067d..bd8d390962 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -1287,10 +1287,13 @@ RouteUI::solo_isolate_button_release (GdkEventButton* ev) } bool -RouteUI::solo_safe_button_release (GdkEventButton*) +RouteUI::solo_safe_button_release (GdkEventButton* ev) { - _route->set_solo_safe (!solo_safe_led->active_state(), this); - return true; + if (ev->button == 1) { + _route->set_solo_safe (!solo_safe_led->active_state(), this); + return true; + } + return false; } void |