aboutsummaryrefslogtreecommitdiff
path: root/gui/settingsdialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-10-29 22:14:57 +0100
committerPetr Mrázek <peterix@gmail.com>2013-10-29 22:14:57 +0100
commit44823324f9f489adf957a459bac5dd4d0693e85e (patch)
tree7d761d3c8189c06dda83e3fa88f281a24ab46e4b /gui/settingsdialog.cpp
parent946d397ccedfe1c116566fce1f86ae4f794e44a4 (diff)
parent511417c4f7a9429619492092201253124ee9fed9 (diff)
downloadPrismLauncher-44823324f9f489adf957a459bac5dd4d0693e85e.tar.gz
PrismLauncher-44823324f9f489adf957a459bac5dd4d0693e85e.tar.bz2
PrismLauncher-44823324f9f489adf957a459bac5dd4d0693e85e.zip
Merge branch 'develop' of github.com:MultiMC/MultiMC5 into develop
Diffstat (limited to 'gui/settingsdialog.cpp')
-rw-r--r--gui/settingsdialog.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/settingsdialog.cpp b/gui/settingsdialog.cpp
index f961a7de..346f7414 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>
@@ -119,10 +120,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);