Fix a podcast list update bug with "All episodes"

If the view filter on the episode list is set to
"Downloads only", marking an episode as not new
in the "All episodes" view will not update the
podcast in the podcast list due to the selection
being removed when the episode list is updated.

The fix is to update the podcast list before the
episode list, leaving the selection intact until
the podcast list has been updated.
This commit is contained in:
Thomas Perl 2010-08-31 22:51:07 +02:00
parent b407353260
commit 381f5868f6

View file

@ -3111,8 +3111,12 @@ class gPodder(BuilderWidget, dbus.service.Object):
show_episode_shownotes=self.show_episode_shownotes)
def on_selected_episodes_status_changed(self):
self.update_episode_list_icons(selected=True)
# The order of the updates here is important! When "All episodes" is
# selected, the update of the podcast list model depends on the episode
# list selection to determine which podcasts are affected. Updating
# the episode list could remove the selection if a filter is active.
self.update_podcast_list_model(selected=True)
self.update_episode_list_icons(selected=True)
self.db.commit()
def mark_selected_episodes_new(self):