mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-24 23:41:10 +00:00
small fix
This commit is contained in:
parent
ac2126e305
commit
ad3d09d170
@ -91,7 +91,6 @@ void FreedesktopBackend::slotNotify ( Notification noti )
|
||||
id.waitForFinished();
|
||||
m_snoreIdMap[noti.id()] = id.value();
|
||||
m_dbusIdMap[id.value()] = noti.id();
|
||||
qDebug() << Q_FUNC_INFO << "Opend" << id.value();
|
||||
}
|
||||
}
|
||||
void FreedesktopBackend::slotActionInvoked(const uint &id, const QString &actionID){
|
||||
@ -104,6 +103,8 @@ void FreedesktopBackend::slotActionInvoked(const uint &id, const QString &action
|
||||
|
||||
void FreedesktopBackend::slotCloseNotification ( Notification notification )
|
||||
{
|
||||
if(!m_snoreIdMap.contains(notification.id()))
|
||||
return;
|
||||
uint id = m_snoreIdMap.take(notification.id());
|
||||
m_dbusIdMap.remove(id);
|
||||
m_interface->CloseNotification(id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user