From ac2126e30570d2142c36e007a47d5aa2b14c1556 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Thu, 25 Jul 2013 12:41:47 +0200 Subject: [PATCH] dont emit action invoked when it doesnt make sense --- .../backends/freedesktop/freedesktopnotification_backend.cpp | 5 ----- src/plugins/backends/snarl/snarl.cpp | 1 - 2 files changed, 6 deletions(-) diff --git a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp index 7408f58..7562e2a 100644 --- a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp +++ b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp @@ -119,11 +119,6 @@ void FreedesktopBackend::slotNotificationClosed ( const uint &id,const uint &rea return; Notification noti = getActiveNotificationByID(m_dbusIdMap.take(id)); m_snoreIdMap.remove(noti.id()); - - if(closeReason == NotificationEnums::CloseReasons::CLOSED) - { - snore()->notificationActionInvoked(noti); - } closeNotification(noti, closeReason); } diff --git a/src/plugins/backends/snarl/snarl.cpp b/src/plugins/backends/snarl/snarl.cpp index c6bb728..3b24e3f 100644 --- a/src/plugins/backends/snarl/snarl.cpp +++ b/src/plugins/backends/snarl/snarl.cpp @@ -82,7 +82,6 @@ public: switch(action){ case SnarlEnums::CallbackInvoked: reason = NotificationEnums::CloseReasons::CLOSED; - m_snarl->snore()->notificationActionInvoked(notification); break; case SnarlEnums::NotifyAction: reason = NotificationEnums::CloseReasons::CLOSED;