From 161290686b4e81f4c89ee3064ef5ec84db87ee51 Mon Sep 17 00:00:00 2001 From: Shadow Date: Mon, 18 Sep 2023 14:28:30 -0700 Subject: [PATCH] Update corkDelegate.py --- manuskript/ui/views/corkDelegate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manuskript/ui/views/corkDelegate.py b/manuskript/ui/views/corkDelegate.py index 99850e7..e6c7aa5 100644 --- a/manuskript/ui/views/corkDelegate.py +++ b/manuskript/ui/views/corkDelegate.py @@ -384,6 +384,11 @@ 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)