Ensure the control has active focus when clicking a SettingItem

This way we ensure that things update properly when for example changing
infill pattern.

Fixes CURA-1494
This commit is contained in:
Arjen Hiemstra 2016-06-14 17:28:40 +02:00
parent eb836bfc3f
commit e473d7a4e9
4 changed files with 12 additions and 8 deletions

View file

@ -86,7 +86,7 @@ SettingItem
}
}
onActivated: provider.setPropertyValue("value", definition.options[index].key)
onActivated: { forceActiveFocus(); provider.setPropertyValue("value", definition.options[index].key) }
onModelChanged: updateCurrentIndex();
Connections