From 691984afd88d61bdee3bf7a9a0e57687c9377ac2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 Nov 2010 13:51:12 -0600 Subject: [PATCH] Fix #7425 (Search as you type launches unnecessarily and loses caret position) --- src/calibre/gui2/search_box.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/search_box.py b/src/calibre/gui2/search_box.py index 8c8b444ebf..ef32d14a19 100644 --- a/src/calibre/gui2/search_box.py +++ b/src/calibre/gui2/search_box.py @@ -163,8 +163,11 @@ class SearchBox2(QComboBox): def mouse_released(self, event): self.normalize_state() - if self.as_you_type: - self.timer.start(1500) + # Dont trigger a search since it make + # re-positioning the cursor using the mouse + # impossible + #if self.as_you_type: + # self.timer.start(1500) def timer_event(self): self.do_search()