CVS commit by tilladam: CVS commit by tilladam: Patch by Luís Pedro Coelhos : Don't emit msgStatusChanged twice when ignoring a thread thereby causing wrong unread counts. M +5 -1 kmmsgbase.cpp 1.173.2.1 --- kdepim/kmail/kmmsgbase.cpp #1.173:1.173.2.1 @@ -133,5 +133,9 @@ void KMMsgBase::toggleStatus(const KMMsg if (aStatus == KMMsgStatusIgnored) { mStatus &= ~KMMsgStatusWatched; - setStatus(KMMsgStatusRead, idx); + // Set to read. Don't use setStatus, that emits msgStatusChanged + // and we only want to do that once. + mStatus &= ~KMMsgStatusUnread; + mStatus &= ~KMMsgStatusNew; + mStatus |= KMMsgStatusRead; } if (aStatus == KMMsgStatusSpam)