mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix searching on devices to not fail when using non-located searches (bare words).
This commit is contained in:
parent
57ab9f1ba0
commit
330de1cc7b
@ -734,8 +734,6 @@ class OnDeviceSearch(SearchQueryParser): # {{{
|
|||||||
'title',
|
'title',
|
||||||
'author',
|
'author',
|
||||||
'format',
|
'format',
|
||||||
'search',
|
|
||||||
'date',
|
|
||||||
'all',
|
'all',
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -867,6 +865,7 @@ class DeviceBooksModel(BooksModel): # {{{
|
|||||||
|
|
||||||
|
|
||||||
def search(self, text, refinement, reset=True):
|
def search(self, text, refinement, reset=True):
|
||||||
|
traceback.print_stack()
|
||||||
if not text or not text.strip():
|
if not text or not text.strip():
|
||||||
self.map = list(range(len(self.db)))
|
self.map = list(range(len(self.db)))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user