last completion change broke completion - fix

This commit is contained in:
Damien Elmes 2010-03-23 17:10:55 +09:00
parent ed948ee810
commit 032ab3fb49

View file

@ -71,7 +71,7 @@ class TagCompleter(QCompleter):
return QStringList(self.tags[self.cursor])
def pathFromIndex(self, idx):
if not self.cursor:
if self.cursor is None:
return self.edit.text()
ret = QCompleter.pathFromIndex(self, idx)
self.tags[self.cursor] = unicode(ret)