mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1341692 [Edit Book: Ctrl+F over selected text raises an error](https://bugs.launchpad.net/calibre/+bug/1341692)
This commit is contained in:
parent
c2576d2d29
commit
f6b2e9aba8
@ -331,7 +331,7 @@ class SearchWidget(QWidget):
|
||||
if self.mode == 'regex':
|
||||
text = regex.escape(text, special_only=True)
|
||||
self.find = text
|
||||
self.find_text.setSelection(0, len(text)+10)
|
||||
self.find_text.lineEdit().setSelection(0, len(text)+10)
|
||||
|
||||
# }}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user