From 40c435e566bcfddd3fd69b55efec786b1162a8be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 26 May 2012 04:03:05 +0200 Subject: [PATCH] Fix KMail counting of unread messages in the system tray icon Thanks to Francois Andriot --- kmail/kmsystemtray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmail/kmsystemtray.cpp b/kmail/kmsystemtray.cpp index 001453a8..d36bd3e9 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; }