Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-09-17 15:41:45 +0300
committerDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-09-17 15:41:45 +0300
commit6c9c68e0041c65ea3097fb0990ff1a3e298fa0f3 (patch)
treeae7bb6550269dde434e67661c8dcfee13b1dba27 /resources
parent2bf617b53a749b074e9fa5015f870eff7aabf176 (diff)
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.
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/Preferences/Materials/MaterialsPage.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/qml/Preferences/Materials/MaterialsPage.qml b/resources/qml/Preferences/Materials/MaterialsPage.qml
index 2050f59739..a00a2340cd 100644
--- a/resources/qml/Preferences/Materials/MaterialsPage.qml
+++ b/resources/qml/Preferences/Materials/MaterialsPage.qml
@@ -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