mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
validate new name instead of passed name
This commit is contained in:
parent
4f2e82aecc
commit
12a7ae0ace
1 changed files with 3 additions and 1 deletions
|
|
@ -385,7 +385,9 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
|
||||
result = self.add_item(new_child, item, new_row)
|
||||
if result is not None:
|
||||
self._validate_asset_duplicity(name)
|
||||
# WARNING Expecting result is index for column 0 ("name")
|
||||
new_name = result.data(QtCore.Qt.DisplayRole)
|
||||
self._validate_asset_duplicity(new_name)
|
||||
|
||||
return result
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue