Fix #1998899 [Editor: "Export saved search to search panel" clears Wrap flag](https://bugs.launchpad.net/calibre/+bug/1998899)

This commit is contained in:
Kovid Goyal 2022-12-06 19:30:36 +05:30
parent 372a55c7d0
commit ee104a3512
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -450,7 +450,8 @@ class SearchWidget(QWidget):
def paste_saved_search(self, s):
self.case_sensitive = s.get('case_sensitive') or False
self.dot_all = s.get('dot_all') or False
self.wrap = s.get('wrap') or False
if 'wrap' in s:
self.wrap = s.get('wrap') or False
self.mode = s.get('mode') or 'normal'
self.find = s.get('find') or ''
self.replace = s.get('replace') or ''