From 033c08d3ff358a363ded10ae83d96270be29346d Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 21 Feb 2017 13:30:44 +0100 Subject: [PATCH] CreateJob name no longer adds the same abbreviation multiple times Contributes to CURA-3387 --- cura/PrintInformation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cura/PrintInformation.py b/cura/PrintInformation.py index b88613b0ac..e4cc59a296 100644 --- a/cura/PrintInformation.py +++ b/cura/PrintInformation.py @@ -205,6 +205,9 @@ class PrintInformation(QObject): if self._pre_sliced: return catalog.i18nc("@label", "Pre-sliced file {0}", base_name) elif Preferences.getInstance().getValue("cura/jobname_prefix"): + # Don't add abbreviation if it already has the exact same abbreviation. + if base_name.startswith(self._abbr_machine + "_"): + return base_name return self._abbr_machine + "_" + base_name else: return base_name