mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
don't allow adding items under removed items
This commit is contained in:
parent
7d225a2ab4
commit
84887088f9
1 changed files with 3 additions and 0 deletions
|
|
@ -366,6 +366,9 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
if parent is None:
|
||||
parent = self._root_item
|
||||
|
||||
if parent.data(None, REMOVED_ROLE):
|
||||
return []
|
||||
|
||||
if start_row is None:
|
||||
start_row = parent.rowCount()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue