From e47e6fa14f70cc3f4fbff688e74718f4155db2d0 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sat, 23 Apr 2011 11:15:59 +0100 Subject: [PATCH] Fix bool searches to not invert the tristate logic. --- 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 92c5ca9b3c..663b2b71ab 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -556,7 +556,7 @@ class ResultCache(SearchQueryParser): # {{{ return matchkind, query def get_bool_matches(self, location, query, candidates): - bools_are_tristate = not self.db_prefs.get('bools_are_tristate') + bools_are_tristate = self.db_prefs.get('bools_are_tristate') loc = self.field_metadata[location]['rec_index'] matches = set() query = icu_lower(query)