diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-10-30 00:56:43 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-10-30 00:56:43 +0100 |
commit | f941119fbd89b5677a2895eee3232fa76389b4b5 (patch) | |
tree | 7d761d3c8189c06dda83e3fa88f281a24ab46e4b /gui/OneSixModEditDialog.cpp | |
parent | c46292c9b1c153f2d17554690e90db1c8efe4d23 (diff) | |
parent | 44823324f9f489adf957a459bac5dd4d0693e85e (diff) | |
download | MultiMC-f941119fbd89b5677a2895eee3232fa76389b4b5.tar MultiMC-f941119fbd89b5677a2895eee3232fa76389b4b5.tar.gz MultiMC-f941119fbd89b5677a2895eee3232fa76389b4b5.tar.lz MultiMC-f941119fbd89b5677a2895eee3232fa76389b4b5.tar.xz MultiMC-f941119fbd89b5677a2895eee3232fa76389b4b5.zip |
Merge branch 'develop'
Diffstat (limited to 'gui/OneSixModEditDialog.cpp')
-rw-r--r-- | gui/OneSixModEditDialog.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gui/OneSixModEditDialog.cpp b/gui/OneSixModEditDialog.cpp index 54f7289d..42bcfeb0 100644 --- a/gui/OneSixModEditDialog.cpp +++ b/gui/OneSixModEditDialog.cpp @@ -23,6 +23,7 @@ #include "logic/ForgeInstaller.h" #include "gui/versionselectdialog.h" #include "gui/platform.h" +#include "gui/CustomMessageBox.h" #include "ProgressDialog.h" #include <pathutils.h> @@ -110,11 +111,11 @@ void OneSixModEditDialog::on_customizeBtn_clicked() void OneSixModEditDialog::on_revertBtn_clicked() { - auto reply = QMessageBox::question( - this, tr("Revert?"), tr("Do you want to revert the " - "version of this instance to its original configuration?"), - QMessageBox::Yes | QMessageBox::No); - if (reply == QMessageBox::Yes) + auto response = CustomMessageBox::selectable(this, tr("Revert?"), + tr("Do you want to revert the " + "version of this instance to its original configuration?"), + QMessageBox::Question, QMessageBox::Yes | QMessageBox::No)->exec(); + if (response == QMessageBox::Yes) { if (m_inst->revertCustomVersion()) { |