Summary: | system tray icon shows -1 unread articles | ||
---|---|---|---|
Product: | [Applications] akregator | Reporter: | Stephen Leaf <smileaf> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | atmchicago, igor |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Nice little picture to display the error |
Description
Stephen Leaf
2005-06-10 05:18:49 UTC
Created attachment 11389 [details]
Nice little picture to display the error
any idea how to reproduce that It's showing -3 now on my box (and the tooltips shows -4294967293). I think such things happen when the messages arrive while I'm browsing the messsage list. The news count is not incremented for new messages. However, it's decremented for each message I read. It would be good to know if any SVN 3.5 branch users have seen this problem (or problems with the unread count in general) in SVN builds since 433783 (July 11th). I get this problem when an article gets marked as unread but the count isn't incremented. This happens under two feeds: 1) http://www.fsf.org/news/RSS "News from the Last Month" 2) http://www.mozilla.org/news.rdf "Security Update for Firefox Released" The two feeds are not valid because they provide duplicate <rdf:about /> entries. The providers of the feeds have been informed. *** Bug 112869 has been marked as a duplicate of this bug. *** even if the 2 feeds are not valid akregator still shouldn't be displaying this obviously wrong unread count. Even if we just said something like if unreadcount < 0 unreadcount = 0 I don't think anyone would have a problem with it. SVN commit 468511 by osterfeld: prevent negative unread count BUG: 107144 M +1 -1 trayicon.cpp --- branches/KDE/3.5/kdepim/akregator/src/trayicon.cpp #468510:468511 @@ -131,7 +131,7 @@ m_unread=unread; QToolTip::remove(this); - QToolTip::add(this, i18n("Akregator - 1 unread article", "Akregator - %n unread articles", unread)); + QToolTip::add(this, i18n("Akregator - 1 unread article", "Akregator - %n unread articles", unread > 0 ? unread : 0)); if (unread == 0) { SVN commit 468516 by osterfeld: really fix 107144 this time CCBUG: 107144 M +1 -1 trayicon.cpp --- branches/KDE/3.5/kdepim/akregator/src/trayicon.cpp #468515:468516 @@ -133,7 +133,7 @@ QToolTip::remove(this); QToolTip::add(this, i18n("Akregator - 1 unread article", "Akregator - %n unread articles", unread > 0 ? unread : 0)); - if (unread == 0) + if (unread <= 0) { setPixmap(m_defaultIcon); } |