From d74cecd9db9d45c7d9273bfa09ad16d48cc4696e Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Wed, 15 Jun 2016 16:27:40 +0200 Subject: [PATCH] Set the ID of the profile object during import; ensure it is unique. Contributes to CURA-1667 Profile import/export --- cura/CuraContainerRegistry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cura/CuraContainerRegistry.py b/cura/CuraContainerRegistry.py index 854fe030da..58f8d6d636 100644 --- a/cura/CuraContainerRegistry.py +++ b/cura/CuraContainerRegistry.py @@ -144,6 +144,7 @@ class CuraContainerRegistry(ContainerRegistry): new_name = self.createUniqueName("quality", "", os.path.splitext(os.path.basename(file_name))[0], catalog.i18nc("@label", "Custom profile")) profile.setName(new_name) + profile._id = new_name if self._machineHasOwnQualities(): profile.setDefinition(self._activeDefinition())