Skip to content

Commit

Permalink
Initialize textColor with None
Browse files Browse the repository at this point in the history
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
  • Loading branch information
TheJackiMonster committed Dec 7, 2023
1 parent 3d4eef2 commit a7abc68
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions manuskript/ui/views/corkDelegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def drawRect(r):
# Draw title
p.save()
text = index.data()
textColor = None

if text:
p.setPen(Qt.black)
Expand Down Expand Up @@ -384,11 +385,6 @@ def drawRect(r):

# 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)
Expand Down

0 comments on commit a7abc68

Please sign in to comment.