This commit is contained in:
Kovid Goyal 2011-07-08 10:52:30 -06:00
commit 48c295cfbf

View File

@ -1801,8 +1801,10 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
if user_cat in gst: if user_cat in gst:
# for gst items, make copy and consolidate the tags by name. # for gst items, make copy and consolidate the tags by name.
if n in names_seen: if n in names_seen:
names_seen[n].id_set |= taglist[label][n].id_set t = names_seen[n]
names_seen[n].count += taglist[label][n].count t.id_set |= taglist[label][n].id_set
t.count += taglist[label][n].count
t.tooltip = t.tooltip.replace(')', ', ' + label + ')')
else: else:
t = copy.copy(taglist[label][n]) t = copy.copy(taglist[label][n])
t.icon = icon_map['gst'] t.icon = icon_map['gst']