Bug 126316 - 'Next article to read' takes me to the most recent when changing folder
Summary: 'Next article to read' takes me to the most recent when changing folder
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 120754 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-26 21:48 UTC by Raúl
Modified: 2006-09-04 02:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screen after pressing '-' and changing folder (21.22 KB, image/jpeg)
2006-04-26 21:56 UTC, Raúl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl 2006-04-26 21:48:40 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages

I have several folders of feeders. I usually press '-' (Menu: Go->Next article to read) key to go to the next article to read, so if it is on another folder I will go there.

When I'm reading the last article to read on the current folder(usually the most recent) and I press the '-' key, akregator goes properly to the next folder but inside that folder to the most recent article, and not to the older unread article inside that folder.
Comment 1 Raúl 2006-04-26 21:56:54 UTC
Created attachment 15788 [details]
Screen after pressing '-' and changing folder

This is the case. I think akregator should go to the Thomas Zander article
which is the oldest unread and not to the George Wright which is the youngest
unread.
Comment 2 Frank Osterfeld 2006-05-20 21:01:18 UTC
SVN commit 542964 by osterfeld:

When iterating over articles using previous [unread] article, jump to the oldest article instead of newest when entering a 
new feed
BUG: 126316


 M  +2 -0      ChangeLog  
 M  +2 -2      src/articlelistview.cpp  


--- branches/KDE/3.5/kdepim/akregator/ChangeLog #542963:542964
@@ -11,6 +11,8 @@
 
 Bug fixes:
 
+ 2006/05/20 Select oldest item instead of newest when jumping to the next feed using previous [unread] 
+            article actions (#126316) -fo
  2006/05/20 Disable Apply-Button in config dialog correctly if no changes were made (#103820) -fo
  2006/05/20 Don't reset article status to New when the article changed (#101907) -fo
  2006/05/10 Always show feed logos; load them on startup, not on first fetch -fo
--- branches/KDE/3.5/kdepim/akregator/src/articlelistview.cpp #542963:542964
@@ -619,7 +619,7 @@
 {
     ArticleItem* ali = 0;
     if (!currentItem() || selectedItems().isEmpty())
-        ali = dynamic_cast<ArticleItem*>(firstChild());
+        ali = dynamic_cast<ArticleItem*>(lastChild());
     else
         ali = dynamic_cast<ArticleItem*>(currentItem()->itemAbove());
     
@@ -690,7 +690,7 @@
 {
     ArticleItem* start = 0L;
     if (!currentItem() || selectedItems().isEmpty())
-        start = dynamic_cast<ArticleItem*>(firstChild());
+        start = dynamic_cast<ArticleItem*>(lastChild());
     else
         start = dynamic_cast<ArticleItem*>(currentItem()->itemAbove() ? currentItem()->itemAbove() : firstChild());
 
Comment 3 Raúl 2006-05-21 00:55:45 UTC
Thanks a lot for the patch. It seems that this would solve the problem, but since I use debian packages, I would have to wait for the next release. I don't know what is the proceeding in these cases, but I would consider this bug solved, reopening it accordingly if I still see that it is not.
Comment 4 Raúl 2006-06-04 02:24:47 UTC
I'm sorry, but once I have updated to kde 3.5.3 in debian unstable (Akregator 1.2.2). I'm having the same problem.

Try to load a rss source, select the rss folder and then press minus, you will go to the newest article again.
Comment 5 Eckhart Wörner 2006-06-04 14:09:21 UTC
I *really* doubt you have updated Akregator to the newest version because

a) the newest version is not in Debian unstable yet and
b) the newest version would be 1.2.3 (as the Akregator minor revision number matches the KDE minor revision number)

The 3.5.3 in the about dialog only tells about the version of the KDE base libraries, not about the version of the programs.
Comment 6 Raúl 2006-06-04 14:17:17 UTC
I that case I'm really sorry, I wasn't very sure of the akregator version which fixed the bug, and thought that as kde 3.5.3 would have it solved the bug should be solved in unstable.

I will close the bug accordingly.
Comment 7 Frank Osterfeld 2006-09-04 02:04:03 UTC
*** Bug 120754 has been marked as a duplicate of this bug. ***