Fix job name UI binding

CURA-5367

UI should always refer to PrintInformation for the job name.
This commit is contained in:
Lipu Fei 2018-06-05 08:58:07 +02:00
parent 39b71add07
commit bbd019f9e5
2 changed files with 2 additions and 3 deletions

View file

@ -81,8 +81,8 @@ Item {
text: PrintInformation.jobName
horizontalAlignment: TextInput.AlignRight
onEditingFinished: {
text = text == "" ? "unnamed" : text;
PrintInformation.setJobName(printJobTextfield.text, true);
var new_name = text == "" ? "unnamed" : text;
PrintInformation.setJobName(new_name, true);
printJobTextfield.focus = false;
}
validator: RegExpValidator {