mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-02 12:02:25 +12:00
Initialize textColor with None
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
3d4eef2b49
commit
a7abc68f8e
|
@ -320,6 +320,7 @@ class corkDelegate(QStyledItemDelegate):
|
|||
# Draw title
|
||||
p.save()
|
||||
text = index.data()
|
||||
textColor = None
|
||||
|
||||
if text:
|
||||
p.setPen(Qt.black)
|
||||
|
@ -384,11 +385,6 @@ class corkDelegate(QStyledItemDelegate):
|
|||
|
||||
# Draw Summary
|
||||
# One line
|
||||
#checking that textColor is actually defined before we use it
|
||||
try:
|
||||
textColor
|
||||
except:
|
||||
textColor = None
|
||||
if lineSummary and textColor:
|
||||
p.save()
|
||||
f = QFont(option.font)
|
||||
|
|
Loading…
Reference in a new issue