sort clone: note type items

This commit is contained in:
Damien Elmes 2013-01-08 10:39:51 +09:00
parent cb8100c641
commit 76988b6081

View File

@ -170,7 +170,7 @@ class AddModel(QDialog):
self.dialog.models.addItem(item)
self.models.append((True, func))
# add copies
for m in self.col.models.all():
for m in sorted(self.col.models.all(), key=itemgetter("name")):
item = QListWidgetItem(_("Clone: %s") % m['name'])
self.dialog.models.addItem(item)
self.models.append((False, m))