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; }