dont emit action invoked when it doesnt make sense
This commit is contained in:
parent
03452acf12
commit
ac2126e305
|
@ -119,11 +119,6 @@ void FreedesktopBackend::slotNotificationClosed ( const uint &id,const uint &rea
|
||||||
return;
|
return;
|
||||||
Notification noti = getActiveNotificationByID(m_dbusIdMap.take(id));
|
Notification noti = getActiveNotificationByID(m_dbusIdMap.take(id));
|
||||||
m_snoreIdMap.remove(noti.id());
|
m_snoreIdMap.remove(noti.id());
|
||||||
|
|
||||||
if(closeReason == NotificationEnums::CloseReasons::CLOSED)
|
|
||||||
{
|
|
||||||
snore()->notificationActionInvoked(noti);
|
|
||||||
}
|
|
||||||
closeNotification(noti, closeReason);
|
closeNotification(noti, closeReason);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,6 @@ public:
|
||||||
switch(action){
|
switch(action){
|
||||||
case SnarlEnums::CallbackInvoked:
|
case SnarlEnums::CallbackInvoked:
|
||||||
reason = NotificationEnums::CloseReasons::CLOSED;
|
reason = NotificationEnums::CloseReasons::CLOSED;
|
||||||
m_snarl->snore()->notificationActionInvoked(notification);
|
|
||||||
break;
|
break;
|
||||||
case SnarlEnums::NotifyAction:
|
case SnarlEnums::NotifyAction:
|
||||||
reason = NotificationEnums::CloseReasons::CLOSED;
|
reason = NotificationEnums::CloseReasons::CLOSED;
|
||||||
|
|
Loading…
Reference in New Issue