[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:26:58 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=3cf3c54
The following commit has been merged in the master branch:
commit 3cf3c54222852202ddb874acbfd6710e3973f22c
Author: Albert Vaca <albertvaka at gmail.com>
Date: Tue Sep 10 15:04:08 2013 +0200
Fixed a bug that caused notification spam when a notification was updated
BUG: 324744
---
kded/plugins/notifications/notificationsdbusinterface.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kded/plugins/notifications/notificationsdbusinterface.cpp b/kded/plugins/notifications/notificationsdbusinterface.cpp
index 3b9eabd..24466a4 100644
--- a/kded/plugins/notifications/notificationsdbusinterface.cpp
+++ b/kded/plugins/notifications/notificationsdbusinterface.cpp
@@ -50,9 +50,9 @@ void NotificationsDbusInterface::processPackage(const NetworkPackage& np)
removeNotification(np.get<QString>("id"));
} else {
Notification* noti = new Notification(np, this);
- addNotification(noti);
- if (!np.get<bool>("requestAnswer", false)) { //Do not show notifications for answers to a initial request
+ //Do not show updates to existent notification nor answers to a initialization request
+ if (!mInternalIdToPublicId.contains(noti->internalId()) && !np.get<bool>("requestAnswer", false)) {
KNotification* notification = new KNotification("notification");
notification->setPixmap(KIcon("preferences-desktop-notification").pixmap(48, 48));
notification->setComponentData(KComponentData("kdeconnect", "kdeconnect"));
@@ -61,7 +61,7 @@ void NotificationsDbusInterface::processPackage(const NetworkPackage& np)
notification->sendEvent();
}
-
+ addNotification(noti);
}
}
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list