diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-12 03:16:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-12 03:16:44 -0500 |
| commit | 85f515da2d1713bc208d2f1bca4197b91950528a (patch) | |
| tree | 0eb2c9b5dcc26a1b658ef49c28c09af39728df09 /src/instancemanagerdialog.cpp | |
| parent | f7de8618124199977c4f4919e70bbfd2693ed341 (diff) | |
| parent | 6ae27224b0dcc860b882bebff3149828d874c832 (diff) | |
Merge pull request #1294 from isanae/master
Bunch of instance and command line stuff
Diffstat (limited to 'src/instancemanagerdialog.cpp')
| -rw-r--r-- | src/instancemanagerdialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/instancemanagerdialog.cpp b/src/instancemanagerdialog.cpp index ff76e121..2497d8d8 100644 --- a/src/instancemanagerdialog.cpp +++ b/src/instancemanagerdialog.cpp @@ -580,13 +580,17 @@ void InstanceManagerDialog::onSelection() void InstanceManagerDialog::createNew() { - CreateInstanceDialog dlg(m_pc, &Settings::instance(), this); + // there might not be settings available; the dialog can be shown when the + // last selected instance doesn't exist anymore + CreateInstanceDialog dlg(m_pc, Settings::maybeInstance(), this); + if (dlg.exec() != QDialog::Accepted) { return; } if (dlg.switching()) { // restarting MO + accept(); return; } |
