mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 07:06:23 +01:00
Mackie Control: Don't crash when the master is on the right
While surfaces are being created it is possible to have surfaces, but not have a master surface yet. This happens when the config calls for extenders to the left of the master section. Don't assume that if we have surfaces, the master surface is available.
This commit is contained in:
parent
454b330950
commit
a84543bcc7
1 changed files with 5 additions and 1 deletions
|
|
@ -610,7 +610,7 @@ MackieControlProtocol::update_global_button (int id, LedState ls)
|
|||
{
|
||||
Glib::Threads::Mutex::Lock lm (surfaces_lock);
|
||||
|
||||
if (surfaces.empty()) {
|
||||
if (!_master_surface) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -694,6 +694,10 @@ MackieControlProtocol::initialize()
|
|||
return;
|
||||
}
|
||||
|
||||
if (!_master_surface) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_master_surface->active ()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue