mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Annotations browser: Fix regression that caused an error when searching. Fixes #1900463 [Annotation Browser: search error](https://bugs.launchpad.net/calibre/+bug/1900463)
This commit is contained in:
parent
051bd1a35f
commit
276c26ff26
@ -481,10 +481,11 @@ class BrowsePanel(QWidget):
|
||||
ignore_removed=True, restrict_to_book_ids=q['restrict_to_book_ids'] or None
|
||||
)
|
||||
else:
|
||||
q2 = q.copy()
|
||||
q2['restrict_to_book_ids'] = q.get('restrict_to_book_ids') or None
|
||||
results = db.search_annotations(
|
||||
highlight_start='\x1d', highlight_end='\x1d', snippet_size=64,
|
||||
ignore_removed=True, restrict_to_book_ids=q['restrict_to_book_ids'] or None,
|
||||
**q
|
||||
ignore_removed=True, **q2
|
||||
)
|
||||
self.results_list.set_results(results, bool(q['fts_engine_query']))
|
||||
self.current_query = q
|
||||
|
Loading…
x
Reference in New Issue
Block a user