mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Don't allow recursive calls to EngineDialog
OK -> start_engine() can eg. trigger an interactive plugin scan, which in turn leaves the EngineDialog responsive. changing settings or clicking OK again can lead to undefined behavior.
This commit is contained in:
parent
97f81479d3
commit
0b8a7d3429
1 changed files with 2 additions and 2 deletions
|
|
@ -466,10 +466,10 @@ EngineControl::on_response (int response_id)
|
|||
|
||||
switch (response_id) {
|
||||
case RESPONSE_OK:
|
||||
hide();
|
||||
if (!start_engine()) {
|
||||
show();
|
||||
return;
|
||||
} else {
|
||||
hide();
|
||||
}
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue