This commit is contained in:
Kovid Goyal 2016-09-05 10:39:51 +05:30
parent 292eaa393a
commit 3ccdb1e8e7

View File

@ -93,11 +93,8 @@ class TagDelegate(QStyledItemDelegate): # {{{
r = style.subElementRect(style.SE_ItemViewItemFocusRect, option, r = style.subElementRect(style.SE_ItemViewItemFocusRect, option,
widget) widget)
painter.drawLine(r.bottomLeft(), r.bottomRight()) painter.drawLine(r.bottomLeft(), r.bottomRight())
if item.type != TagTreeItem.TAG: if item.type == TagTreeItem.TAG and item.tag.state == 0 and config['show_avg_rating']:
return self.draw_average_rating(item, style, painter, option, widget)
if item.tag.state == 0:
if config['show_avg_rating']:
self.draw_average_rating(item, style, painter, option, widget)
# }}} # }}}