mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7425 (Search as you type launches unnecessarily and loses caret position)
This commit is contained in:
parent
0c0e167f39
commit
691984afd8
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user