summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-01-03 21:11:33 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-01-03 21:11:33 +0100
commit116a6458b5ba35c87f6a22783d509a1fe8672f24 (patch)
treedee0255960f25508d6a30d1d81df6e06c311c629
parentdf1186e0212efc99fb0125380f2da0a3ac85fe5a (diff)
downloadMultiMC-116a6458b5ba35c87f6a22783d509a1fe8672f24.tar
MultiMC-116a6458b5ba35c87f6a22783d509a1fe8672f24.tar.gz
MultiMC-116a6458b5ba35c87f6a22783d509a1fe8672f24.tar.lz
MultiMC-116a6458b5ba35c87f6a22783d509a1fe8672f24.tar.xz
MultiMC-116a6458b5ba35c87f6a22783d509a1fe8672f24.zip
Explicitly set the close button to be the default button
-rw-r--r--gui/MainWindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp
index 826cbc04..cb9171f1 100644
--- a/gui/MainWindow.cpp
+++ b/gui/MainWindow.cpp
@@ -545,6 +545,7 @@ void MainWindow::notificationsChanged()
QMessageBox box(icon, tr("Notification"), entry.message, QMessageBox::Close, this);
QPushButton *dontShowAgainButton = box.addButton(tr("Don't show again"), QMessageBox::AcceptRole);
+ box.setDefaultButton(QMessageBox::Close);
box.exec();
if (box.clickedButton() == dontShowAgainButton)
{