projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97f8147
)
Don't allow recursive calls to EngineDialog
author
Robin Gareus
<robin@gareus.org>
Sat, 19 Nov 2016 03:54:36 +0000
(
04:54
+0100)
committer
Robin Gareus
<robin@gareus.org>
Sat, 19 Nov 2016 03:54:36 +0000
(
04:54
+0100)
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.
gtk2_ardour/engine_dialog.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/engine_dialog.cc
b/gtk2_ardour/engine_dialog.cc
index 8a6c42fd8c79bdb11771d4463dcfe96322fa65b3..b20b56176fc5a3568a080b9c1b761126e41d398e 100644
(file)
--- a/
gtk2_ardour/engine_dialog.cc
+++ b/
gtk2_ardour/engine_dialog.cc
@@
-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