From fe2ccde25cd2448164f47de751857bb8cf36b63c Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 2 May 2016 06:39:30 +0200 Subject: [PATCH] Counts fixed. --- resources/text/CHANGELOG | 5 +++++ src/services/abstract/serviceroot.cpp | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/resources/text/CHANGELOG b/resources/text/CHANGELOG index 2351ca1b2..ed02e4ca9 100755 --- a/resources/text/CHANGELOG +++ b/resources/text/CHANGELOG @@ -5,6 +5,11 @@ Added: ▪ ownCloud plugin now allows to add feeds and rename feeds. +Fixed: + +▪ Some minor buggies and code mistakes. +▪ Fixed problem with message counts. + 3.2.1 ————— diff --git a/src/services/abstract/serviceroot.cpp b/src/services/abstract/serviceroot.cpp index af65fcb09..00e321cc3 100755 --- a/src/services/abstract/serviceroot.cpp +++ b/src/services/abstract/serviceroot.cpp @@ -104,6 +104,13 @@ void ServiceRoot::updateCounts(bool including_total_count) { feed->setCountOfAllMessages(counts.value(feed->customId()).second); } } + else { + feed->setCountOfUnreadMessages(0); + + if (including_total_count) { + feed->setCountOfAllMessages(0); + } + } } } }