mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix new asset name validation
This commit is contained in:
parent
63c3482f67
commit
42c950a033
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
result = self.add_item(new_child, item, new_row)
|
||||
if result is not None:
|
||||
# WARNING Expecting result is index for column 0 ("name")
|
||||
new_name = result.data(QtCore.Qt.DisplayRole)
|
||||
new_name = result.data(QtCore.Qt.EditRole)
|
||||
self._validate_asset_duplicity(new_name)
|
||||
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue