From 4dc5053429f52d37089f408667369dfe95206d11 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Mon, 3 May 2010 06:51:50 +0100 Subject: [PATCH] Make tooltips on custom columns work when search restriction is set --- src/calibre/library/database2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index fd4ca7aa6b..1033841626 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -636,7 +636,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns): categories[category] = [Tag(r[1], count=r[2], id=r[0], icon=icon, tooltip = tooltip) for r in data] else: # filter out zero-count tags - categories[category] = [Tag(r[1], count=r[2], id=r[0], icon=icon) + categories[category] = [Tag(r[1], count=r[2], id=r[0], icon=icon, tooltip = tooltip) for r in data if r[2] > 0] categories['format'] = [] for fmt in self.conn.get('SELECT DISTINCT format FROM data'):