mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 07:53:13 +02:00
Fix searching on devices to not fail when using non-located searches (bare words).
This commit is contained in:
parent
57ab9f1ba0
commit
330de1cc7b
1 changed files with 1 additions and 2 deletions
|
|
@ -734,8 +734,6 @@ class OnDeviceSearch(SearchQueryParser): # {{{
|
|||
'title',
|
||||
'author',
|
||||
'format',
|
||||
'search',
|
||||
'date',
|
||||
'all',
|
||||
]
|
||||
|
||||
|
|
@ -867,6 +865,7 @@ def flags(self, index):
|
|||
|
||||
|
||||
def search(self, text, refinement, reset=True):
|
||||
traceback.print_stack()
|
||||
if not text or not text.strip():
|
||||
self.map = list(range(len(self.db)))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue