From 6d3dee5b4571b564cdc23508c9af3d40efe894e0 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 7 Nov 2014 15:22:06 +0100 Subject: [PATCH] let ourself spam allow all notifications by the same process pass trough needed to display all the "applet deleted" notifications and not merge them --- dataengines/notifications/notificationsengine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dataengines/notifications/notificationsengine.cpp b/dataengines/notifications/notificationsengine.cpp index aecec0b7a..06233e9ca 100644 --- a/dataengines/notifications/notificationsengine.cpp +++ b/dataengines/notifications/notificationsengine.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -149,7 +150,9 @@ uint NotificationsEngine::Notify(const QString &app_name, uint replaces_id, { uint partOf = 0; - if (m_activeNotifications.values().contains(app_name + summary)) { + //don't let applications spam too much, except ourself + //needed to display all the "applet deleted" notifications and not merge them + if (m_activeNotifications.values().contains(app_name + summary) && app_name != QGuiApplication::applicationDisplayName()) { // cut off the "notification " from the source name partOf = m_activeNotifications.key(app_name + summary).mid(13).toUInt();