From 12c4a88db690b0eed3a308a36c8e9cda3db5cca3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 11 Mar 2020 15:13:18 +0100 Subject: [PATCH] Prevent stuck VCA button This is for Mixbus, which always shows the VCA button regardless of VCAs being present in the session. --- gtk2_ardour/control_slave_ui.cc | 5 +++-- 1 file 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