From 86544d41726359ae8d8166f6cd1a4ea06d8fc471 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 1 Jul 2016 19:02:35 +0200 Subject: [PATCH] Fix translate function It was expected to return a list of translated names, even though it actually translates in-place. Contributes to issue CURA-844. --- .../VersionUpgrade21to22/VersionUpgrade21to22.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py b/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py index 8a166ba160..f54609256d 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py @@ -58,11 +58,16 @@ class VersionUpgrade21to22(VersionUpgrade): return None return profile.export() + ## Translates printer names that have changed since the last version. + # + # \param printers A list of printer names in the old version. + # \return The same list, but with printer names translated. @staticmethod def translatePrinters(printers): for index, printer in enumerate(printers): if printer == "ultimaker2plus": printers[index] = "ultimaker2_plus" + return printers ## Updates settings for the change from Cura 2.1 to 2.2. #