mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 17:11:57 +00:00
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);
|
QMessageBox box(icon, tr("Notification"), entry.message, QMessageBox::Close, this);
|
||||||
QPushButton *dontShowAgainButton = box.addButton(tr("Don't show again"), QMessageBox::AcceptRole);
|
QPushButton *dontShowAgainButton = box.addButton(tr("Don't show again"), QMessageBox::AcceptRole);
|
||||||
|
box.setDefaultButton(QMessageBox::Close);
|
||||||
box.exec();
|
box.exec();
|
||||||
if (box.clickedButton() == dontShowAgainButton)
|
if (box.clickedButton() == dontShowAgainButton)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user