mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
do not set keys that are not in editable keys
This commit is contained in:
parent
acb7ea347a
commit
048f856f63
1 changed files with 3 additions and 4 deletions
|
|
@ -844,12 +844,11 @@ class BaseItem:
|
|||
self._is_duplicated = value
|
||||
return True
|
||||
|
||||
if key not in self.columns:
|
||||
return False
|
||||
|
||||
if role == QtCore.Qt.EditRole:
|
||||
self._data[key] = value
|
||||
if key not in self.editable_columns:
|
||||
return False
|
||||
|
||||
self._data[key] = value
|
||||
# must return true if successful
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue