From 08a06f5d267d2668e7c273f3c6223eb7f93dc84f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 Aug 2010 09:37:12 -0600 Subject: [PATCH] Fix preference to 'search as you type' not working --- src/calibre/gui2/search_box.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/search_box.py b/src/calibre/gui2/search_box.py index cb6791bb3b..562292c2f6 100644 --- a/src/calibre/gui2/search_box.py +++ b/src/calibre/gui2/search_box.py @@ -146,7 +146,8 @@ class SearchBox2(QComboBox): self._in_a_search = False if event.key() in (Qt.Key_Return, Qt.Key_Enter): self.do_search() - self.timer.start(1500) + if self.as_you_type: + self.timer.start(1500) def mouse_released(self, event): self.normalize_state()