We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a3197 commit 58079c3Copy full SHA for 58079c3
Orange/widgets/utils/headerview.py
@@ -70,6 +70,9 @@ def initStyleOptionForIndex(
70
is used (isSectionSelected will scan the entire model column/row
71
when the whole column/row is selected).
72
"""
73
+ model = self.model()
74
+ if model is None:
75
+ return
76
hover = self.logicalIndexAt(self.mapFromGlobal(QCursor.pos()))
77
pressed = self.__pressed
78
@@ -100,7 +103,6 @@ def initStyleOptionForIndex(
100
103
)
101
104
102
105
style = self.style()
- model = self.model()
106
orientation = self.orientation()
107
textAlignment = model.headerData(logicalIndex, self.orientation(),
108
Qt.TextAlignmentRole)
0 commit comments