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: 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(-) (limited to 'kmail/kmsystemtray.cpp') 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; } -- cgit v1.2.1