mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 08:37:11 -05:00
sort newly added tags
This commit is contained in:
parent
54d6c7c86b
commit
4b1a102f3d
1 changed files with 1 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue