sort newly added tags

This commit is contained in:
Damien Elmes 2009-05-07 19:31:08 +09:00
parent 54d6c7c86b
commit 4b1a102f3d

View file

@ -26,6 +26,7 @@ class TagEdit(QLineEdit):
def addTags(self, tags):
l = list(set([unicode(x) for x in list(self.model.stringList())] +
tags))
l.sort(key=lambda x: x.lower())
self.model.setStringList(QStringList(l))
def focusOutEvent(self, evt):