Explicitly set the close button to be the default button

This commit is contained in:
Jan Dalheimer 2014-01-03 21:11:33 +01:00
parent df1186e021
commit 116a6458b5

View File

@ -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)
{