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/settingsdialog.cpp | |
parent | e7e03c2b542b1cceda63628dd7ca6fa9c875cfd2 (diff) | |
download | PrismLauncher-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar.gz PrismLauncher-b0ef429786bef64799d43f1ac502c139bbde8dc5.tar.bz2 PrismLauncher-b0ef429786bef64799d43f1ac502c139bbde8dc5.zip |
Add selectable message box helper, use it, make login GUI error label selectable
Diffstat (limited to 'gui/settingsdialog.cpp')
-rw-r--r-- | gui/settingsdialog.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/settingsdialog.cpp b/gui/settingsdialog.cpp index fb204d10..2619a47f 100644 --- a/gui/settingsdialog.cpp +++ b/gui/settingsdialog.cpp @@ -19,6 +19,7 @@ #include "logic/JavaUtils.h" #include "gui/versionselectdialog.h" #include "gui/platform.h" +#include "gui/CustomMessageBox.h" #include "logic/lists/JavaVersionList.h" #include <settingsobject.h> @@ -113,10 +114,10 @@ void SettingsDialog::applySettings(SettingsObject *s) } else if (!s->get("UseDevBuilds").toBool()) { - int response = QMessageBox::question( - this, tr("Development builds"), - tr("Development builds contain experimental features " - "and may be unstable. Are you sure you want to enable them?")); + auto response = CustomMessageBox::selectable(this, tr("Development builds"), + tr("Development builds contain experimental features " + "and may be unstable. Are you sure you want to enable them?"), + QMessageBox::Question, QMessageBox::Yes | QMessageBox::No)->exec(); if (response == QMessageBox::Yes) { s->set("UseDevBuilds", true); |