mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
last completion change broke completion - fix
This commit is contained in:
parent
ed948ee810
commit
032ab3fb49
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ class TagCompleter(QCompleter):
|
||||||
return QStringList(self.tags[self.cursor])
|
return QStringList(self.tags[self.cursor])
|
||||||
|
|
||||||
def pathFromIndex(self, idx):
|
def pathFromIndex(self, idx):
|
||||||
if not self.cursor:
|
if self.cursor is None:
|
||||||
return self.edit.text()
|
return self.edit.text()
|
||||||
ret = QCompleter.pathFromIndex(self, idx)
|
ret = QCompleter.pathFromIndex(self, idx)
|
||||||
self.tags[self.cursor] = unicode(ret)
|
self.tags[self.cursor] = unicode(ret)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue