Bug 133158 - new messages won't be displayed when all messages are deleted unless category is changed
Summary: new messages won't be displayed when all messages are deleted unless category...
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: 1.2.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-29 01:39 UTC by tek
Modified: 2006-09-04 09:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tek 2006-08-29 01:39:22 UTC
Version:           1.2.4 (using KDE 3.5.4, Gentoo)
Compiler:          gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.17-gentoo-r5

In the following situation, a feed is not loaded (nothing happens) when clicked:
-I deleted all feeds in that news source
-a new feed in that news source arrives
-I didn't switch to another new source in between
-appears also in "all sources" when all feeds are deleted

When I switch to another source and back, and then click the new feed, it is displayed.
Comment 1 Frank Osterfeld 2006-08-29 20:26:01 UTC
Which view mode do you use? (View->View Mode in the menu)
Are you sure it has to do with the list being empty? Does it reliably work when the list is non-empty?

(I checked for false "if (foo.isEmpty()) return;" lines but found nothing)
Comment 2 tek 2006-08-29 21:24:45 UTC
I'm using the normal mode.

When I delete a feed of a non-empty list, the next feed is selected and loaded correctly.

Maybe, when deleting the last feed, some index is set to the first in the list (however, I should maybe take a look at source, too) and when the new feed arrives, some check for the same feed is performed and goes true. signal onClick() or s.th.
Comment 3 tek 2006-08-30 00:19:40 UTC
Maybe it's because ArticleListView::noneSelected isn't reset to true on deletion of the last feed, and so slotCurrentChanged isn't called...when changing the news source, it's constructed again and thus noneSelected is true. This is the closest I can get without gdb'ing.
Comment 4 Frank Osterfeld 2006-09-04 00:21:46 UTC
Indeed, the selection does not work when there is only one item in the list.
Comment 5 Frank Osterfeld 2006-09-04 09:33:38 UTC
Fixed, commit messages accidentally went to #133237.