summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/MainWindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp
index cf34a46b..826cbc04 100644
--- a/gui/MainWindow.cpp
+++ b/gui/MainWindow.cpp
@@ -543,9 +543,13 @@ void MainWindow::notificationsChanged()
break;
}
- QMessageBox box(icon, tr("Notification"), entry.message, QMessageBox::Ok, this);
+ QMessageBox box(icon, tr("Notification"), entry.message, QMessageBox::Close, this);
+ QPushButton *dontShowAgainButton = box.addButton(tr("Don't show again"), QMessageBox::AcceptRole);
box.exec();
- shownNotifications.append(entry.id);
+ if (box.clickedButton() == dontShowAgainButton)
+ {
+ shownNotifications.append(entry.id);
+ }
}
}
MMC->settings()->set("ShownNotifications", intListToString(shownNotifications));