Undo only abbreviation as job name. CURA-3226

This commit is contained in:
Jack Ha 2017-02-21 15:15:50 +01:00
parent d0721b1feb
commit 580010b673

View File

@ -210,11 +210,7 @@ class PrintInformation(QObject):
# Don't add abbreviation if it already has the exact same abbreviation.
if base_name.startswith(self._abbr_machine + "_"):
return base_name
# Only return abbreviation if no base name is given.
if base_name == "":
return self._abbr_machine
else:
return self._abbr_machine + "_" + base_name
return self._abbr_machine + "_" + base_name
else:
return base_name