From 6c06fd23ecf637a961789baa31e0957c565bbe0c Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Fri, 8 Jul 2011 17:47:52 +0100 Subject: [PATCH] Minor usability enhancement for GST: make tooltip show source categories --- src/calibre/library/database2.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index 9fe9d3dabb..8ee6af31fc 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -1801,8 +1801,10 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns): if user_cat in gst: # for gst items, make copy and consolidate the tags by name. if n in names_seen: - names_seen[n].id_set |= taglist[label][n].id_set - names_seen[n].count += taglist[label][n].count + t = names_seen[n] + t.id_set |= taglist[label][n].id_set + t.count += taglist[label][n].count + t.tooltip = t.tooltip.replace(')', ', ' + label + ')') else: t = copy.copy(taglist[label][n]) t.icon = icon_map['gst']