diff options
author | Jaime van Kessel <nallath@gmail.com> | 2017-09-05 12:41:30 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2017-09-05 12:41:30 +0300 |
commit | 204e1ee834824070d2b26f12ed2efa2ea7ca9836 (patch) | |
tree | 78e1a999da5e20730144d24f2b41f4bc679abee6 /cura/PrintInformation.py | |
parent | bcd8e2ca67ab2cb32844a7d76d5554ce02883684 (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.py | 3 |
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() |