From d14f4ac67868a31a5eebe982cdbfcb892c7dbad9 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Wed, 23 May 2018 16:28:35 +0200 Subject: [PATCH] CURA-5280 Preserve manually entered project name Manual override of job name should also set the base name so that when the printer prefix is updated, it the prefix can be added to the manually added name, not the old base name. This was a bit tricky because if you enter a job name, is that the job name or the base name? My answer is that it's both, and if you update your printer for the job, it will append a new prefix. If this is not the desired behavior, and in fact once a custom name is set nothing can change it, then line 78 should be removed. --- cura/PrintInformation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/PrintInformation.py b/cura/PrintInformation.py index 01d0b43f5b..a901d326ca 100644 --- a/cura/PrintInformation.py +++ b/cura/PrintInformation.py @@ -279,9 +279,11 @@ class PrintInformation(QObject): for build_plate_number in range(self._multi_build_plate_model.maxBuildPlate + 1): self._calculateInformation(build_plate_number) + # prefix can be added to the manually added name, not the old base name @pyqtSlot(str) def setJobName(self, name): self._job_name = name + self._base_name = name self.jobNameChanged.emit() jobNameChanged = pyqtSignal()