summaryrefslogtreecommitdiff
path: root/src/createinstancedialog.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-11-03 12:10:41 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-03 12:10:41 -0500
commita4747a1ecc9f4fe56700c64933cc3c6cebd04734 (patch)
treedaddf9542d5bb5e686d2d628abec83fd8c46a20f /src/createinstancedialog.cpp
parent7b1e30b4649bc9ed8844cbc0d330aaf150957373 (diff)
show create instance dialog on startup if there are no instances
Diffstat (limited to 'src/createinstancedialog.cpp')
-rw-r--r--src/createinstancedialog.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/createinstancedialog.cpp b/src/createinstancedialog.cpp
index d2846367..c976ee13 100644
--- a/src/createinstancedialog.cpp
+++ b/src/createinstancedialog.cpp
@@ -333,11 +333,17 @@ void CreateInstanceDialog::finish()
if (ui->launch->isChecked()) {
InstanceManager::instance().setCurrentInstance(ci.instanceName);
- ExitModOrganizer(Exit::Restart);
+
+ if (m_settings) {
+ // don't restart without settings, it happens on startup when there are
+ // no instances
+ ExitModOrganizer(Exit::Restart);
+ }
+
m_switching = true;
- } else {
- accept();
}
+
+ accept();
}
catch(Failed&)
{