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

@ -31,7 +31,7 @@ SettingItem
}
}
onClicked: propertyProvider.setPropertyValue("value", !checked)
onClicked: { forceActiveFocus(); propertyProvider.setPropertyValue("value", !checked) }
Rectangle
{