Prevent stuck VCA button

This is for Mixbus, which always shows the VCA button regardless
of VCAs being present in the session.
This commit is contained in:
Robin Gareus 2020-03-11 15:13:18 +01:00
parent d979c9d09c
commit 12c4a88db6
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -182,7 +182,7 @@ ControlSlaveUI::vca_button_release (GdkEventButton* ev, uint32_t n)
if (vcas.empty()) { if (vcas.empty()) {
/* the button should not have been visible under these conditions */ /* the button should not have been visible under these conditions */
return true; return false;
} }
delete context_menu; delete context_menu;
@ -214,9 +214,10 @@ ControlSlaveUI::vca_button_release (GdkEventButton* ev, uint32_t n)
if (!items.empty()) { if (!items.empty()) {
context_menu->popup (1, ev->time); context_menu->popup (1, ev->time);
return true;
} }
return true; return false;
} }
void void