Don't sort the podcast model in-place

This is already done in all the views, so it's
unnecessary to sort the "backend" list, too.
This commit is contained in:
Thomas Perl 2011-10-17 14:17:29 +02:00
parent 11c849a19d
commit 160c712432
2 changed files with 1 additions and 3 deletions

View File

@ -2196,7 +2196,6 @@ class gPodder(BuilderWidget, dbus.service.Object):
url = None
# Update the list of subscribed podcasts
self.channels.sort(key=Model.podcast_sort_key)
self.update_podcast_list_model(select_url=url)
# Offer to download new episodes

View File

@ -1278,8 +1278,7 @@ class Model(object):
return self.PodcastClass.create_from_dict(dct, self)
if self.children is None:
self.children = sorted(self.db.load_podcasts(podcast_factory),
key=self.PodcastClass.sort_key)
self.children = self.db.load_podcasts(podcast_factory)
return self.children
def load_podcast(self, url, create=True, authentication_tokens=None,