Another unicode bug.

This commit is contained in:
Kovid Goyal 2007-10-07 16:18:55 +00:00
parent a72cc18eba
commit a202e27a58

View File

@ -693,7 +693,7 @@ class SearchBox(QLineEdit):
def timerEvent(self, event): def timerEvent(self, event):
self.killTimer(event.timerId()) self.killTimer(event.timerId())
if event.timerId() == self.timer: if event.timerId() == self.timer:
text = str(self.text()) text = qstring_to_unicode(self.text())
refinement = text.startswith(self.prev_search) refinement = text.startswith(self.prev_search)
self.prev_search = text self.prev_search = text
self.emit(SIGNAL('search(PyQt_PyObject, PyQt_PyObject)'), text, refinement) self.emit(SIGNAL('search(PyQt_PyObject, PyQt_PyObject)'), text, refinement)