summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-03-27 21:05:41 +0200
committerPetr Mrázek <peterix@gmail.com>2018-03-27 21:05:41 +0200
commit12b304ea7306bb8b964194fbe30a6b5a81ed85b9 (patch)
tree4dc046430cf1d9db72d683cea656a97fc5089a23
parent8e44ab2338f4ca63d58de4b3329c384df9d6c053 (diff)
downloadMultiMC-12b304ea7306bb8b964194fbe30a6b5a81ed85b9.tar
MultiMC-12b304ea7306bb8b964194fbe30a6b5a81ed85b9.tar.gz
MultiMC-12b304ea7306bb8b964194fbe30a6b5a81ed85b9.tar.lz
MultiMC-12b304ea7306bb8b964194fbe30a6b5a81ed85b9.tar.xz
MultiMC-12b304ea7306bb8b964194fbe30a6b5a81ed85b9.zip
NOISSUE fix crash in NewInstanceDialog
-rw-r--r--application/dialogs/NewInstanceDialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp
index f0783603..218d5e8e 100644
--- a/application/dialogs/NewInstanceDialog.cpp
+++ b/application/dialogs/NewInstanceDialog.cpp
@@ -67,8 +67,6 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString
m_buttons = new QDialogButtonBox(QDialogButtonBox::Help | QDialogButtonBox::Ok);
m_buttons->button(QDialogButtonBox::Ok)->setDefault(true);
- connect(m_buttons->button(QDialogButtonBox::Ok), &QPushButton::clicked, this, &QDialog::accept);
- connect(m_buttons->button(QDialogButtonBox::Help), &QPushButton::clicked, m_container, &PageContainer::help);
m_container = new PageContainer(this);
m_container->setSizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Expanding);
@@ -83,9 +81,13 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString
importPage->setUrl(url);
}
+ connect(m_buttons->button(QDialogButtonBox::Ok), &QPushButton::clicked, this, &QDialog::accept);
+ connect(m_buttons->button(QDialogButtonBox::Help), &QPushButton::clicked, m_container, &PageContainer::help);
+
updateDialogState();
restoreGeometry(QByteArray::fromBase64(MMC->settings()->get("NewInstanceGeometry").toByteArray()));
+
}
QList<BasePage *> NewInstanceDialog::getPages()