diff --git a/src/calibre/library/caches.py b/src/calibre/library/caches.py index af950a36fc..b778b58c31 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -615,7 +615,7 @@ class ResultCache(SearchQueryParser): q = self.search_restriction else: q = query - if not ignore_search_restriction: + if not ignore_search_restriction and self.search_restriction: q = u'%s (%s)' % (self.search_restriction, query) if not q: if return_matches: