mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -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):
|
def mouse_released(self, event):
|
||||||
self.normalize_state()
|
self.normalize_state()
|
||||||
if self.as_you_type:
|
# Dont trigger a search since it make
|
||||||
self.timer.start(1500)
|
# re-positioning the cursor using the mouse
|
||||||
|
# impossible
|
||||||
|
#if self.as_you_type:
|
||||||
|
# self.timer.start(1500)
|
||||||
|
|
||||||
def timer_event(self):
|
def timer_event(self):
|
||||||
self.do_search()
|
self.do_search()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user