Fix container ID modification in profile importing

CURA-4868
This commit is contained in:
Lipu Fei 2018-01-29 14:47:32 +01:00
parent 507b967946
commit 34e6816f83

View File

@ -296,7 +296,7 @@ class CuraContainerRegistry(ContainerRegistry):
profile.setDirty(True) # Ensure the profiles are correctly saved
new_id = self.createUniqueName("quality_changes", "", id_seed, catalog.i18nc("@label", "Custom profile"))
profile._id = new_id
profile.setMetaDataEntry("id", new_id)
profile.setName(new_name)
# Set the unique Id to the profile, so it's generating a new one even if the user imports the same profile