summaryrefslogtreecommitdiffstats
path: root/kmail
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-05-26 04:03:05 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-05-26 04:03:05 +0200
commit40c435e566bcfddd3fd69b55efec786b1162a8be (patch)
treeb8dfefef4db777b679cb4e18262a0d57f9702d7e /kmail
parentc48253af15badc7a81db7ea2f22465405a897110 (diff)
downloadtdepim-40c435e566bcfddd3fd69b55efec786b1162a8be.tar.gz
tdepim-40c435e566bcfddd3fd69b55efec786b1162a8be.zip
Fix KMail counting of unread messages in the system tray icon
Thanks to Francois Andriot
Diffstat (limited to 'kmail')
-rw-r--r--kmail/kmsystemtray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmail/kmsystemtray.cpp b/kmail/kmsystemtray.cpp
index 001453a83..d36bd3e95 100644
--- a/kmail/kmsystemtray.cpp
+++ b/kmail/kmsystemtray.cpp
@@ -493,7 +493,7 @@ void KMSystemTray::updateNewMessages()
* our last known version, and adjust mCount with that difference */
else
{
- int diff = unread - it.data();
+ int diff = unread - unread_it.data();
mCount += diff;
}