mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +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) {
|
switch (response_id) {
|
||||||
case RESPONSE_OK:
|
case RESPONSE_OK:
|
||||||
if (!start_engine()) {
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
hide();
|
hide();
|
||||||
|
if (!start_engine()) {
|
||||||
|
show();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue