From a7b5b699ded55faf3fc0f5406f0e14f0d3994e3f Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Sun, 26 Apr 2015 16:10:02 +0200 Subject: [PATCH] update linux backend --- .../backends/freedesktop/freedesktopnotification_backend.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp index 27b630d..7f030e1 100644 --- a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp +++ b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp @@ -82,9 +82,11 @@ void FreedesktopBackend::slotNotify(Notification noti) id.waitForFinished(); noti.hints().setPrivateValue(this, "id", id.value()); m_dbusIdMap[id.value()] = noti; + slotNotificationDisplayed(noti); snoreDebug(SNORE_DEBUG) << noti.id() << "|" << id.value(); } + void FreedesktopBackend::slotActionInvoked(const uint &id, const QString &actionID) { snoreDebug(SNORE_DEBUG) << id << m_dbusIdMap[id]; @@ -92,8 +94,7 @@ void FreedesktopBackend::slotActionInvoked(const uint &id, const QString &action if (!noti.isValid()) { return; } - noti.data()->setActionInvoked(actionID.toInt()); - SnoreCorePrivate::instance()->notificationActionInvoked(noti); + slotNotificationActionInvoked(noti, noti.actions().value(actionID.toInt()));; } void FreedesktopBackend::slotCloseNotification(Notification notification)