Load saved searches list in sorted order

This commit is contained in:
Houssam Salem 2014-11-11 10:13:29 +11:00
parent e294469521
commit 6e20bf7013

View File

@ -821,7 +821,7 @@ by clicking on one on the left."""))
root = self.CallbackItem(root, _("My Searches"), None)
root.setExpanded(True)
root.setIcon(0, QIcon(":/icons/emblem-favorite-dark.png"))
for name, filt in saved.items():
for name, filt in sorted(saved.items()):
item = self.CallbackItem(root, name, lambda s=filt: self.setFilter(s))
item.setIcon(0, QIcon(":/icons/emblem-favorite-dark.png"))