Bug 107144 - system tray icon shows -1 unread articles
Summary: system tray icon shows -1 unread articles
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 112869 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-10 05:18 UTC by Stephen Leaf
Modified: 2005-10-08 13:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Nice little picture to display the error (16.29 KB, image/png)
2005-06-10 05:19 UTC, Stephen Leaf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Leaf 2005-06-10 05:18:49 UTC
Version:            (using KDE KDE 3.4.1)
Installed from:    Gentoo Packages

The system tray shows that I have -1 unread articles.
The tool tip shows I have -4294967295 unread articles.
When in reality I have 0 unread.
Comment 1 Stephen Leaf 2005-06-10 05:19:54 UTC
Created attachment 11389 [details]
Nice little picture to display the error
Comment 2 Heinrich Wendel 2005-06-23 20:38:47 UTC
any idea how to reproduce that
Comment 3 Igor Wawrzyniak 2005-08-09 18:05:02 UTC
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.
Comment 4 Frank Osterfeld 2005-08-16 23:21:11 UTC
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). 
Comment 5 Christopher E. Granade 2005-09-01 01:04:16 UTC
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"
Comment 6 Eckhart Wörner 2005-09-01 01:38:31 UTC
The two feeds are not valid because they provide duplicate <rdf:about /> entries.
The providers of the feeds have been informed.
Comment 7 Frank Osterfeld 2005-09-19 07:51:56 UTC
*** Bug 112869 has been marked as a duplicate of this bug. ***
Comment 8 Stephen Leaf 2005-10-06 06:59:57 UTC
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.
Comment 9 Frank Osterfeld 2005-10-08 13:27:41 UTC
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)
     {    
Comment 10 Frank Osterfeld 2005-10-08 13:39:36 UTC
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);
     }