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
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 3 additions and 2 deletions

View File

@ -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