mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
avoid moving task under project
This commit is contained in:
parent
b224216cf5
commit
e88f7c3e33
1 changed files with 6 additions and 0 deletions
|
|
@ -293,6 +293,12 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
if src_parent is dst_parent:
|
||||
return
|
||||
|
||||
if (
|
||||
isinstance(item, TaskItem)
|
||||
and not isinstance(dst_parent, AssetItem)
|
||||
):
|
||||
return
|
||||
|
||||
if dst_parent_index is None:
|
||||
dst_parent_index = self.index_from_item(
|
||||
dst_parent.row(), 0, dst_parent.parent()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue