diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-01-03 21:11:33 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-01-03 21:11:33 +0100 |
commit | 116a6458b5ba35c87f6a22783d509a1fe8672f24 (patch) | |
tree | dee0255960f25508d6a30d1d81df6e06c311c629 | |
parent | df1186e0212efc99fb0125380f2da0a3ac85fe5a (diff) | |
download | MultiMC-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.cpp | 1 |
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) { |