mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
block model signals during set project
This commit is contained in:
parent
07f879d59b
commit
f734b59305
1 changed files with 4 additions and 0 deletions
|
|
@ -264,6 +264,8 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
if not project_doc:
|
||||
return
|
||||
|
||||
self.blockSignals(True)
|
||||
|
||||
# Create project item
|
||||
project_item = ProjectItem(project_doc)
|
||||
self.add_item(project_item)
|
||||
|
|
@ -377,6 +379,8 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
|
||||
self.add_items(task_items, asset_item)
|
||||
|
||||
self.blockSignals(False)
|
||||
|
||||
# Emit that project was successfully changed
|
||||
self.project_changed.emit()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue