Active the focus when the selected item changes.

In this case, if the user was updating some information in one material
and then select other material, the new data is stored.

Contributes to CURA-5682.
This commit is contained in:
Diego Prado Gesto 2018-09-17 14:41:45 +02:00
parent 2bf617b53a
commit 6c9c68e004

View file

@ -45,7 +45,11 @@ Item
Component.onCompleted: materialListView.expandActiveMaterial(active_root_material_id)
// Every time the selected item has changed, notify to the details panel
onCurrentItemChanged: materialDetailsPanel.currentItem = currentItem
onCurrentItemChanged:
{
forceActiveFocus()
materialDetailsPanel.currentItem = currentItem
}
// Main layout
Label