From 241b2a4841b4e8abc44cc1362a7b69842e2fb28f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Jul 2010 22:41:02 -0600 Subject: [PATCH] Don't surround search queries with parentheses unneccessarily --- src/calibre/library/caches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: