diff options
author | Sky <git@bunnies.cc> | 2013-10-29 12:40:09 +0000 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-10-29 12:40:09 +0000 |
commit | b0ef429786bef64799d43f1ac502c139bbde8dc5 (patch) | |
tree | b419161990d382edd0033b097880e044de4f75c7 /gui/OneSixModEditDialog.cpp | |
parent | e7e03c2b542b1cceda63628dd7ca6fa9c875cfd2 (diff) | |
download | MultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar MultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar.gz MultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar.lz MultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar.xz MultiMC-b0ef429786bef64799d43f1ac502c139bbde8dc5.zip |
Add selectable message box helper, use it, make login GUI error label selectable
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()) { |