Fix #9270 (error after update to 0.7.48)

This commit is contained in:
Kovid Goyal 2011-03-04 14:18:38 -07:00
parent cb2974fd13
commit ecb808768f

View File

@ -1586,6 +1586,7 @@ class TagsModel(QAbstractItemModel): # {{{
else: else:
prefix = '' prefix = ''
category = tag.category if key != 'news' else 'tag' category = tag.category if key != 'news' else 'tag'
add_colon = False
if self.db.field_metadata[tag.category]['is_csp']: if self.db.field_metadata[tag.category]['is_csp']:
add_colon = True add_colon = True