mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
return no flags if item is None
This commit is contained in:
parent
e999b1a8c4
commit
8a1028912b
1 changed files with 2 additions and 0 deletions
|
|
@ -313,6 +313,8 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
|
||||
def flags(self, index):
|
||||
item = index.internalPointer()
|
||||
if item is None:
|
||||
return QtCore.Qt.NoItemFlags
|
||||
column = index.column()
|
||||
key = self.columns[column]
|
||||
return item.flags(key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue