mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make tooltips on custom columns work when search restriction is set
This commit is contained in:
parent
4b6a1b9f9f
commit
4dc5053429
@ -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'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user