mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix change of project
This commit is contained in:
parent
629cae2bd5
commit
67e10bfd43
1 changed files with 6 additions and 2 deletions
|
|
@ -230,9 +230,13 @@ class AssetsModel(QtGui.QStandardItemModel):
|
|||
item = self._items.pop(item_id, None)
|
||||
if item is None:
|
||||
continue
|
||||
row = item.row()
|
||||
if row < 0:
|
||||
continue
|
||||
parent = item.parent()
|
||||
if parent is not None:
|
||||
parent.takeRow(item.row())
|
||||
if parent is None:
|
||||
parent = root_item
|
||||
parent.takeRow(row)
|
||||
|
||||
self.items_changed.emit()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue