projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa2ea11
)
goto preferred over reentrancy
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 11 Oct 2019 03:47:17 +0000
(21:47 -0600)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 11 Oct 2019 03:47:17 +0000
(21:47 -0600)
gtk2_ardour/startup_fsm.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/startup_fsm.cc
b/gtk2_ardour/startup_fsm.cc
index 18c622602b08ba085ca9a5df38c49a08919900d0..390f0672bbe658be0fa6247052ae04ee0a106feb 100644
(file)
--- a/
gtk2_ardour/startup_fsm.cc
+++ b/
gtk2_ardour/startup_fsm.cc
@@
-128,6
+128,8
@@
StartupFSM::dialog_response_handler (int response, StartupFSM::DialogID dialog_i
{
const bool new_session_required = (ARDOUR_COMMAND_LINE::new_session || (!ARDOUR::Profile->get_mixbus() && new_user));
+ restart:
+
switch (_state) {
case NeedPreRelease:
switch (dialog_id) {
@@
-142,7
+144,12
@@
StartupFSM::dialog_response_handler (int response, StartupFSM::DialogID dialog_i
if (NewUserWizard::required()) {
show_new_user_wizard ();
} else {
- dialog_response_handler (RESPONSE_OK, NewUserDialog);
+ /* act as if we had just finished with the new
+ user wizard. goto preferred over reentrancy.
+ */
+ dialog_id = NewUserDialog;
+ response = RESPONSE_OK;
+ goto restart;
}
break;
}