aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-09-19 09:12:08 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-09-19 09:12:08 (GMT)
commit73e6a4c320d652c40c2c8e948d473bee4afde1b9 (patch)
tree1d9b12ac3159d47e0b23f0e81dfc712f3de11205
parenta5f7969f7cca2b5063cc13daef1086b2dbfa30a0 (diff)
NtfCollector: ensure ntfs always have a valid resource set
Fixes emails not being marked as read on the server due to notification filter for resource Monitor not accepting the notification.
-rw-r--r--src/server/storage/notificationcollector.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/storage/notificationcollector.cpp b/src/server/storage/notificationcollector.cpp
index 56b7e09..1df0fef 100644
--- a/src/server/storage/notificationcollector.cpp
+++ b/src/server/storage/notificationcollector.cpp
@@ -349,6 +349,9 @@ void NotificationCollector::itemNotification(Protocol::ItemChangeNotification::O
QByteArray res = resource;
if (res.isEmpty()) {
+ if (col.resourceId() <= 0) {
+ col = Collection::retrieveById(col.id());
+ }
res = col.resource().name().toLatin1();
}
msg.setResource(res);