Search box: Only trigger as you type timer if text content has changed

This commit is contained in:
Kovid Goyal 2010-11-30 10:15:53 -07:00
parent 3fcebe8383
commit 243fcf5b38

View File

@ -140,7 +140,7 @@ class SearchBox2(QComboBox):
if event.key() in (Qt.Key_Return, Qt.Key_Enter):
self.do_search()
self.focus_to_library.emit()
if self.as_you_type:
elif self.as_you_type and unicode(event.text()):
self.timer.start(1500)
def timer_event(self):