diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-11-13 16:14:31 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-11-13 16:14:31 +0100 |
| commit | 1facda19438bf01e5b8e08b7ebeb7f3a1c21028f (patch) | |
| tree | bb5b9483c32b781b58ae275e4850fd85596573e0 /src/instancemanagerdialog.cpp | |
| parent | 4d94ba8dbba20da6d030a8a3adf73d2dbd6fc56f (diff) | |
| parent | 85f515da2d1713bc208d2f1bca4197b91950528a (diff) | |
Merge branch 'master' of github.com:ModOrganizer2/modorganizer into iplugin-isactive-refactoring
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; } |
