Store: Always sort stores in case-insentive alphabetical order.

This commit is contained in:
John Schember 2011-05-09 19:05:01 -04:00
parent 4a20c220f1
commit f4878b5c7f
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class StoreAction(InterfaceAction):
self.store_menu.clear()
self.store_menu.addAction(_('Search'), self.search)
self.store_menu.addSeparator()
for n, p in self.gui.istores.items():
for n, p in sorted(self.gui.istores.items(), key=lambda x: x[0].lower()):
self.store_menu.addAction(n, partial(self.open_store, p))
self.qaction.setMenu(self.store_menu)

View File

@ -47,7 +47,7 @@ class SearchDialog(QDialog, Ui_Dialog):
# per search basis.
stores_group_layout = QVBoxLayout()
self.stores_group.setLayout(stores_group_layout)
for x in self.store_plugins:
for x in sorted(self.store_plugins.keys(), key=lambda x: x.lower()):
cbox = QCheckBox(x)
cbox.setChecked(True)
stores_group_layout.addWidget(cbox)