update linux backend

This commit is contained in:
Patrick von Reth 2015-04-26 16:10:02 +02:00
parent 641f94aa12
commit a7b5b699de
1 changed files with 3 additions and 2 deletions

View File

@ -82,9 +82,11 @@ void FreedesktopBackend::slotNotify(Notification noti)
id.waitForFinished(); id.waitForFinished();
noti.hints().setPrivateValue(this, "id", id.value()); noti.hints().setPrivateValue(this, "id", id.value());
m_dbusIdMap[id.value()] = noti; m_dbusIdMap[id.value()] = noti;
slotNotificationDisplayed(noti);
snoreDebug(SNORE_DEBUG) << noti.id() << "|" << id.value(); snoreDebug(SNORE_DEBUG) << noti.id() << "|" << id.value();
} }
void FreedesktopBackend::slotActionInvoked(const uint &id, const QString &actionID) void FreedesktopBackend::slotActionInvoked(const uint &id, const QString &actionID)
{ {
snoreDebug(SNORE_DEBUG) << id << m_dbusIdMap[id]; snoreDebug(SNORE_DEBUG) << id << m_dbusIdMap[id];
@ -92,8 +94,7 @@ void FreedesktopBackend::slotActionInvoked(const uint &id, const QString &action
if (!noti.isValid()) { if (!noti.isValid()) {
return; return;
} }
noti.data()->setActionInvoked(actionID.toInt()); slotNotificationActionInvoked(noti, noti.actions().value(actionID.toInt()));;
SnoreCorePrivate::instance()->notificationActionInvoked(noti);
} }
void FreedesktopBackend::slotCloseNotification(Notification notification) void FreedesktopBackend::slotCloseNotification(Notification notification)