From 032ab3fb4970c66ab010e5276d4620a551ba7a23 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 23 Mar 2010 17:10:55 +0900 Subject: [PATCH] last completion change broke completion - fix --- ankiqt/ui/tagedit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/ui/tagedit.py b/ankiqt/ui/tagedit.py index 8821391ca..0477039b8 100644 --- a/ankiqt/ui/tagedit.py +++ b/ankiqt/ui/tagedit.py @@ -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)