diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-25 22:47:34 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:05 -0500 |
| commit | 0f0313874aa90c66acaac9082f5ba6fbd29300ef (patch) | |
| tree | d9dbb5b7e479f88656379b9b4617632b20dce601 /src/createinstancedialog.cpp | |
| parent | dfbcf8ec4c6da4d2d098403a01e7ec19b587e836 (diff) | |
new GlobalSettings class to manage the registry
close the create instance dialog when launch is unchecked
Diffstat (limited to 'src/createinstancedialog.cpp')
| -rw-r--r-- | src/createinstancedialog.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/createinstancedialog.cpp b/src/createinstancedialog.cpp index 63df9cd7..5a38aa50 100644 --- a/src/createinstancedialog.cpp +++ b/src/createinstancedialog.cpp @@ -294,8 +294,7 @@ void CreateInstanceDialog::finish() InstanceManager::instance().setCurrentInstance(ci.instanceName); ExitModOrganizer(Exit::Restart); } else { - ui->next->setEnabled(false); - ui->cancel->setText(tr("Close")); + close(); } } catch(Failed&) @@ -338,10 +337,6 @@ void CreateInstanceDialog::updateNavigation() } else { ui->next->setText(m_originalNext); } - - // this may have been changed by finish() if the launch checkbox wasn't - // checked - ui->cancel->setText(tr("Cancel")); } CreateInstanceDialog::Types CreateInstanceDialog::instanceType() const |
