dont emit action invoked when it doesnt make sense

This commit is contained in:
Patrick von Reth 2013-07-25 12:41:47 +02:00
parent 03452acf12
commit ac2126e305
2 changed files with 0 additions and 6 deletions

View File

@ -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);
}

View File

@ -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;