Bug 133237 - 1 article is always not displayed when new feeds are checked and the status is set to 'unread'
Summary: 1 article is always not displayed when new feeds are checked and the status i...
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-30 02:25 UTC by Stephen Leaf
Modified: 2013-12-05 03:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot showing akregator and its systray icon with a bad feeds count. (194.80 KB, image/jpeg)
2007-07-18 14:28 UTC, tnemeth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Leaf 2006-08-30 02:25:02 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Compiled From Sources

I generally always keep akregator to only show unread articles
However when new articles are fetched 1 is always missing.
In order to get it to display I have to change the status to something else let it update(I cannot just toggle it back quickly) and then change it back to unread
I'm using the combined view
Comment 1 Frank Osterfeld 2006-09-04 00:38:51 UTC
SVN commit 580572 by osterfeld:

make article selectable when the number of items in the list is reduced to one
BUG: 133237


 M  +11 -0     articlelistview.cpp  


--- trunk/KDE/kdepim/akregator/src/articlelistview.cpp #580571:580572
@@ -420,6 +420,10 @@
         setSelected(next, true);
         setCurrentItem(next);
     }
+    else
+    {
+        d->noneSelected = true;
+    }
 
     setUpdatesEnabled(true);
     triggerUpdate();
@@ -461,6 +465,10 @@
         setSelected(next, true);
         setCurrentItem(next);
     }
+    else
+    {
+        d->noneSelected = true;
+    }
 
     setUpdatesEnabled(true);
     triggerUpdate();
@@ -700,7 +708,10 @@
     if (ai)
         emit signalArticleChosen( ai->article() );
     else
+    {
+        d->noneSelected = true;
         emit signalArticleChosen( Article() );
+    }
 }
 
 
Comment 2 Frank Osterfeld 2006-09-04 00:39:50 UTC
SVN commit 580574 by osterfeld:

backport: make single items in the list always selectable (i.e. emit signal)
CCBUG: 133237


 M  +12 -1     articlelistview.cpp  


--- branches/KDE/3.5/kdepim/akregator/src/articlelistview.cpp #580573:580574
@@ -424,6 +424,10 @@
         setSelected(next, true);
         setCurrentItem(next);
     }
+    else
+    {
+        d->noneSelected = true;
+    }
 
     setUpdatesEnabled(true);
     triggerUpdate();
@@ -465,6 +469,10 @@
         setSelected(next, true);
         setCurrentItem(next);
     }
+    else
+    {
+        d->noneSelected = true;
+    }
 
     setUpdatesEnabled(true);
     triggerUpdate();
@@ -745,8 +753,11 @@
     ArticleItem* ai = dynamic_cast<ArticleItem*> (item);
     if (ai)
         emit signalArticleChosen( ai->article() );
-    else 
+    else
+    {
+        d->noneSelected = true;
         emit signalArticleChosen( Article() );
+    }
 } 
 
 
Comment 3 Frank Osterfeld 2006-09-04 09:32:56 UTC
Hrm, wrong bug number closed. Reopening.
Comment 4 Frank Osterfeld 2006-09-04 09:48:17 UTC
Hmm, I can't see how this can happen - both switching nodes and updating the displayed node uses the same code.
Is there any pattern which article is left out? Like the very newest article, or the oldest of the new articles?
Comment 5 Frank Osterfeld 2006-09-04 10:13:27 UTC
Ok, I can reproduce it now. It seems always the last article (the oldest is omitted)
Comment 6 Stephen Leaf 2006-09-04 20:42:25 UTC
I'm not sure if this is related at all but the total unread count also is sometimes 1 less than the actual count. it seems to get more accurate or something with the more unread you have.
such as yesterday I noticed All Feeds said I had 8 unread
my KDE section said I had 6 and another had 1 unread.
6+1 != 8
right now tho I have 121 unread and that is actually correct.
Comment 7 Stephen Leaf 2006-10-21 23:55:29 UTC
3.5.5 follow-up
still one article missing but there is another problem that might be related.

Under All Feeds the count there is almost always 1 off now too.
for example right now I see:
All Feeds (1)
But in a feed it has 2 unread.
Comment 8 tnemeth 2007-07-18 14:28:53 UTC
Created attachment 21177 [details]
screenshot showing akregator and its systray icon with a bad feeds count.

I have a similar bug here.

The total count is 1 less than the sum of all sub-counts. It happens when I
let my computer on for some time (more than 1 week). If I stop and start
akgregator (well, more precisely kontact), the problem disappear.
The screenshot shows it clearly with only 1 sub-count as all other are already
read. It also happens when there are several other feeds not read.

The systray icon shows also the bad count.
Comment 9 Adrián Chaves (Gallaecio) 2012-10-27 21:23:38 UTC
I also experience wrong counts in the treeview (even negative counters!), but the original post was about items not visible. Is that still happening for you with a newer version of Akregator?
Comment 10 Stephen Leaf 2013-12-05 03:39:30 UTC
Looks to be working fine now so I'm going to close my own bug thanks!