From d61540d065b656f15819a844a7e6a093c07fbdcd Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 28 Dec 2020 16:16:29 +0000 Subject: [PATCH] Bug #1909442: saved searches don't work in the device view --- src/calibre/gui2/library/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index fe3b9eddf7..33996a9495 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -1221,7 +1221,8 @@ class OnDeviceSearch(SearchQueryParser): # {{{ 'formats', 'title', 'inlibrary', - 'tags' + 'tags', + 'search' ] def __init__(self, model): @@ -1252,7 +1253,7 @@ class OnDeviceSearch(SearchQueryParser): # {{{ if location not in self.USABLE_LOCATIONS: return set() matches = set() - all_locs = set(self.USABLE_LOCATIONS) - {'all', 'tags'} + all_locs = set(self.USABLE_LOCATIONS) - {'all', 'tags', 'search'} locations = all_locs if location == 'all' else [location] q = { 'title' : lambda x : getattr(x, 'title').lower(),