prioritize marked/flagged card colour over suspended colour

This commit is contained in:
Damien Elmes 2018-09-05 16:55:26 +10:00
parent 36b763e45f
commit 18a7fb9dcd

View File

@ -358,12 +358,12 @@ class StatusDelegate(QItemDelegate):
option.direction = Qt.RightToLeft
col = None
if c.queue == -1:
col = COLOUR_SUSPENDED
elif c.userFlag() > 0:
if c.userFlag() > 0:
col = flagColours[c.userFlag()]
elif c.note().hasTag("Marked"):
col = COLOUR_MARKED
elif c.queue == -1:
col = COLOUR_SUSPENDED
if col:
brush = QBrush(QColor(col))
painter.save()