From 330de1cc7be73f0ba69eba3362a36395b80249d0 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Fri, 21 May 2010 12:02:18 +0100 Subject: [PATCH] Fix searching on devices to not fail when using non-located searches (bare words). --- src/calibre/gui2/library/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index e3dc5eed48..e234002a9c 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -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: