diff --git a/manuskript/ui/views/corkDelegate.py b/manuskript/ui/views/corkDelegate.py index e6c7aa5..387bfcb 100644 --- a/manuskript/ui/views/corkDelegate.py +++ b/manuskript/ui/views/corkDelegate.py @@ -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)