From kde-commits Mon Jun 21 20:56:05 2004 From: Till Adam Date: Mon, 21 Jun 2004 20:56:05 +0000 To: kde-commits Subject: KDE_3_2_BRANCH: kdepim/kmail Message-Id: <20040621205605.F261A9970 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=108785137910916 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)