diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-06-30 19:44:30 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-06-30 19:44:30 +0200 |
commit | a222c94d349290d704c3af668110f72676081b62 (patch) | |
tree | c7785750c9a52a7c1ac4b9f607f0a7ea5ba55768 /application | |
parent | a872085f9a215aec238ea995e5e5f1216fa606ee (diff) | |
download | MultiMC-a222c94d349290d704c3af668110f72676081b62.tar MultiMC-a222c94d349290d704c3af668110f72676081b62.tar.gz MultiMC-a222c94d349290d704c3af668110f72676081b62.tar.lz MultiMC-a222c94d349290d704c3af668110f72676081b62.tar.xz MultiMC-a222c94d349290d704c3af668110f72676081b62.zip |
NOISSUE add cancel button to the new instance dialog
Diffstat (limited to 'application')
-rw-r--r-- | application/dialogs/NewInstanceDialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp index b3ce5c6c..01843505 100644 --- a/application/dialogs/NewInstanceDialog.cpp +++ b/application/dialogs/NewInstanceDialog.cpp @@ -64,7 +64,7 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString ui->groupBox->setCurrentIndex(index); ui->groupBox->lineEdit()->setPlaceholderText(tr("No group")); - m_buttons = new QDialogButtonBox(QDialogButtonBox::Help | QDialogButtonBox::Ok); + m_buttons = new QDialogButtonBox(QDialogButtonBox::Help | QDialogButtonBox::Ok | QDialogButtonBox::Cancel); m_buttons->button(QDialogButtonBox::Ok)->setDefault(true); @@ -83,6 +83,7 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString } connect(m_buttons->button(QDialogButtonBox::Ok), &QPushButton::clicked, this, &NewInstanceDialog::accept); + connect(m_buttons->button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &NewInstanceDialog::reject); connect(m_buttons->button(QDialogButtonBox::Help), &QPushButton::clicked, m_container, &PageContainer::help); updateDialogState(); |