Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2017-09-05 12:41:30 +0300
committerJaime van Kessel <nallath@gmail.com>2017-09-05 12:41:30 +0300
commit204e1ee834824070d2b26f12ed2efa2ea7ca9836 (patch)
tree78e1a999da5e20730144d24f2b41f4bc679abee6 /cura/PrintInformation.py
parentbcd8e2ca67ab2cb32844a7d76d5554ce02883684 (diff)
PrintJobname is now only set when it was empty or if it's set to empty
CURA-4276 fixes #2346
Diffstat (limited to 'cura/PrintInformation.py')
-rw-r--r--cura/PrintInformation.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/PrintInformation.py b/cura/PrintInformation.py
index 47672a9823..6100b7a39e 100644
--- a/cura/PrintInformation.py
+++ b/cura/PrintInformation.py
@@ -227,7 +227,8 @@ class PrintInformation(QObject):
# when a file is opened using the terminal; the filename comes from _onFileLoaded and still contains its
# extension. This cuts the extension off if necessary.
name = os.path.splitext(name)[0]
- if self._job_name != name:
+
+ if self._job_name != name and (self._job_name == "" or name == ""):
self._job_name = name
self.jobNameChanged.emit()