[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_2_BRANCH: kdepim/kmail
From: Till Adam <adam () kde ! org>
Date: 2004-06-21 20:56:05
Message-ID: 20040621205605.F261A9970 () office ! kde ! org
[Download RAW message or body]
CVS commit by tilladam:
CVS commit by tilladam:
Patch by Luís Pedro Coelhos <luis@luispedro.org>:
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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic