mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
fix new list item focus
This commit is contained in:
parent
32f5c85f88
commit
a3b83959ec
1 changed files with 6 additions and 1 deletions
|
|
@ -304,7 +304,12 @@ class ListWidget(InputWidget):
|
|||
field_2.order_changed()
|
||||
|
||||
def add_new_item(self, row=None):
|
||||
self.entity.add_new_item(row)
|
||||
new_entity = self.entity.add_new_item(row)
|
||||
for input_field in self.input_fields:
|
||||
if input_field.entity is new_entity:
|
||||
input_field.input_field.setFocus(True)
|
||||
break
|
||||
return new_entity
|
||||
|
||||
def add_row(self, child_entity, row=None):
|
||||
# Create new item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue