diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index e416196775..05070e4432 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -302,7 +302,6 @@ class CuraApplication(QtApplication): self._platform_activity = False self._scene_bounding_box = AxisAlignedBox.Null - self._job_name = None self._center_after_select = False self._camera_animation = None self._cura_actions = None diff --git a/resources/qml/JobSpecs.qml b/resources/qml/JobSpecs.qml index 6cd9999db7..3b10cf59d5 100644 --- a/resources/qml/JobSpecs.qml +++ b/resources/qml/JobSpecs.qml @@ -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 {