This commit is contained in:
Kovid Goyal 2008-06-10 23:32:30 -07:00
parent 8023b175e3
commit 069c9fb925

View File

@ -822,7 +822,7 @@ class SearchBox(QLineEdit):
QLineEdit.mouseReleaseEvent(self, event) QLineEdit.mouseReleaseEvent(self, event)
def text_edited_slot(self, text): def text_edited_slot(self, text):
text = str(text) text = qstring_to_unicode(text) if isinstance(text, QString) else unicode(text)
self.prev_text = text self.prev_text = text
self.timer = self.startTimer(self.__class__.INTERVAL) self.timer = self.startTimer(self.__class__.INTERVAL)