summaryrefslogtreecommitdiffstats
path: root/gui/OneSixModEditDialog.cpp
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-10-29 12:40:09 +0000
committerSky <git@bunnies.cc>2013-10-29 12:40:09 +0000
commitb0ef429786bef64799d43f1ac502c139bbde8dc5 (patch)
treeb419161990d382edd0033b097880e044de4f75c7 /gui/OneSixModEditDialog.cpp
parente7e03c2b542b1cceda63628dd7ca6fa9c875cfd2 (diff)
downloadMultiMC-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.cpp11
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())
{