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