Merge branch 'master' of github.com:Ultimaker/Cura

This commit is contained in:
Ghostkeeper 2016-09-12 17:39:34 +02:00
commit a8db414b2a

View File

@ -48,7 +48,15 @@ Item {
MouseArea {
anchors.fill: parent;
onClicked: {
parent.checked ? UM.Controller.setActiveTool(null) : UM.Controller.setActiveTool(model.id);
forceActiveFocus() //First grab focus, so all the text fields are updated
if(parent.checked)
{
UM.Controller.setActiveTool(null)
}
else
{
UM.Controller.setActiveTool(model.id);
}
}
}
}