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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user