Explicitly set the close button to be the default button
This commit is contained in:
parent
df1186e021
commit
116a6458b5
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user