Fix searching on devices to not fail when using non-located searches (bare words).

This commit is contained in:
Charles Haley 2010-05-21 12:02:18 +01:00
parent 57ab9f1ba0
commit 330de1cc7b

View File

@ -734,8 +734,6 @@ class OnDeviceSearch(SearchQueryParser): # {{{
'title',
'author',
'format',
'search',
'date',
'all',
]
@ -867,6 +865,7 @@ class DeviceBooksModel(BooksModel): # {{{
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: