mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Make tooltips on custom columns work when search restriction is set
This commit is contained in:
parent
4b6a1b9f9f
commit
4dc5053429
1 changed files with 1 additions and 1 deletions
|
|
@ -636,7 +636,7 @@ def get_categories(self, sort_on_count=False, ids=None, icon_map=None):
|
|||
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'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue