Only set user-specified job name when the editting is finished

CURA-5280
This commit is contained in:
Lipu Fei 2018-05-28 17:34:12 +02:00
parent 8a35d52ddd
commit 3b0b6d300b

View file

@ -80,10 +80,8 @@ Item {
property int unremovableSpacing: 5
text: PrintInformation.jobName
horizontalAlignment: TextInput.AlignRight
onTextChanged: {
PrintInformation.setJobName(text, true);
}
onEditingFinished: {
PrintInformation.setJobName(text, true);
if (printJobTextfield.text != ''){
printJobTextfield.focus = false;
}