mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +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
|
# Draw title
|
||||||
p.save()
|
p.save()
|
||||||
text = index.data()
|
text = index.data()
|
||||||
|
textColor = None
|
||||||
|
|
||||||
if text:
|
if text:
|
||||||
p.setPen(Qt.black)
|
p.setPen(Qt.black)
|
||||||
|
@ -384,11 +385,6 @@ class corkDelegate(QStyledItemDelegate):
|
||||||
|
|
||||||
# Draw Summary
|
# Draw Summary
|
||||||
# One line
|
# One line
|
||||||
#checking that textColor is actually defined before we use it
|
|
||||||
try:
|
|
||||||
textColor
|
|
||||||
except:
|
|
||||||
textColor = None
|
|
||||||
if lineSummary and textColor:
|
if lineSummary and textColor:
|
||||||
p.save()
|
p.save()
|
||||||
f = QFont(option.font)
|
f = QFont(option.font)
|
||||||
|
|
Loading…
Reference in a new issue