diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-11 15:13:18 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-11 15:13:18 +0100 |
commit | 12c4a88db690b0eed3a308a36c8e9cda3db5cca3 (patch) | |
tree | b9abce57dcaa1b55faf5f2b3c14ac1d6a20e2f33 /gtk2_ardour/control_slave_ui.cc | |
parent | d979c9d09c6ae4c122eff0054d4e89a7eeaa4a02 (diff) |
Prevent stuck VCA button
This is for Mixbus, which always shows the VCA button regardless
of VCAs being present in the session.
Diffstat (limited to 'gtk2_ardour/control_slave_ui.cc')
-rw-r--r-- | gtk2_ardour/control_slave_ui.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/control_slave_ui.cc b/gtk2_ardour/control_slave_ui.cc index 98383dfe0c..55b0e1a14d 100644 --- a/gtk2_ardour/control_slave_ui.cc +++ b/gtk2_ardour/control_slave_ui.cc @@ -182,7 +182,7 @@ ControlSlaveUI::vca_button_release (GdkEventButton* ev, uint32_t n) if (vcas.empty()) { /* the button should not have been visible under these conditions */ - return true; + return false; } delete context_menu; @@ -214,9 +214,10 @@ ControlSlaveUI::vca_button_release (GdkEventButton* ev, uint32_t n) if (!items.empty()) { context_menu->popup (1, ev->time); + return true; } - return true; + return false; } void |