aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-09-19 09:10:03 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-09-19 09:10:03 (GMT)
commita5f7969f7cca2b5063cc13daef1086b2dbfa30a0 (patch)
treeb3ca96e60974364a918be84693e7cd34c4825cac
parent6f1a9e76a329eeaa5000108b839feefd84108133 (diff)
NtfCollector: fix incremental col stats update on mark as unread
-rw-r--r--src/server/storage/notificationcollector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/storage/notificationcollector.cpp b/src/server/storage/notificationcollector.cpp
index 1b50f83..56b7e09 100644
--- a/src/server/storage/notificationcollector.cpp
+++ b/src/server/storage/notificationcollector.cpp
@@ -77,7 +77,7 @@ void NotificationCollector::itemsFlagsChanged(const PimItem::List &items,
const QByteArray &resource)
{
int seenCount = (addedFlags.contains(AKONADI_FLAG_SEEN) || addedFlags.contains(AKONADI_FLAG_IGNORED) ? items.count() : 0);
- seenCount -= (removedFlags.contains(AKONADI_FLAG_SEEN) || removedFlags.contains(AKONADI_FLAG_IGNORED) ? -items.count() : 0);
+ seenCount -= (removedFlags.contains(AKONADI_FLAG_SEEN) || removedFlags.contains(AKONADI_FLAG_IGNORED) ? items.count() : 0);
CollectionStatistics::self()->itemsSeenChanged(collection, seenCount);
itemNotification(Protocol::ItemChangeNotification::ModifyFlags, items, collection, Collection(), resource, QSet<QByteArray>(), addedFlags, removedFlags);