From b4b73a8f36303403c5a7eb5a40e3105d7aef1cb3 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Sun, 19 Jan 2014 19:30:02 +0100 Subject: [PATCH] fixed linux --- .../backends/freedesktop/freedesktopnotification_backend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp index 0c2e9dd..641e14a 100644 --- a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp +++ b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp @@ -77,7 +77,7 @@ void FreedesktopBackend::slotNotify ( Notification noti ) uint updateId = 0; if(noti.isUpdate()) { - updateId = noti.notificationToReplace().id(); + updateId = noti.old().hints().privateValue(this, "id").toUInt(); m_dbusIdMap.take(updateId); } @@ -89,7 +89,7 @@ void FreedesktopBackend::slotNotify ( Notification noti ) body = Snore::toPlainText(body); } QDBusPendingReply id = m_interface->Notify(noti.application().name(), updateId, "", title, - body, actions, hints, noti.sticky()?-1:noti.timeout()*1000); + body, actions, hints, noti.isSticky()?-1:noti.timeout()*1000); id.waitForFinished();