sort initial add too, as it's not the same as db order

This commit is contained in:
Damien Elmes 2009-05-07 19:31:40 +09:00
parent 4b1a102f3d
commit 5b14d882e7

View file

@ -20,6 +20,7 @@ class TagEdit(QLineEdit):
"Set the current deck, updating list of available tags." "Set the current deck, updating list of available tags."
self.deck = deck self.deck = deck
tags = self.deck.allTags() tags = self.deck.allTags()
tags.sort(key=lambda x: x.lower())
self.model.setStringList( self.model.setStringList(
QStringList(tags)) QStringList(tags))