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