From 70ab4a68939ad2185bd423262227e9311c41c81b 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 (cherry picked from commit 40c435e566bcfddd3fd69b55efec786b1162a8be) --- kmail/kmsystemtray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmail/kmsystemtray.cpp b/kmail/kmsystemtray.cpp index ce59b4e1..2d64ef07 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; }