mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-23 02:41:01 -07:00
Set the ID of the profile object during import; ensure it is unique.
Contributes to CURA-1667 Profile import/export
This commit is contained in:
parent
38eec41162
commit
d74cecd9db
1 changed files with 1 additions and 0 deletions
|
|
@ -144,6 +144,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
||||||
new_name = self.createUniqueName("quality", "", os.path.splitext(os.path.basename(file_name))[0],
|
new_name = self.createUniqueName("quality", "", os.path.splitext(os.path.basename(file_name))[0],
|
||||||
catalog.i18nc("@label", "Custom profile"))
|
catalog.i18nc("@label", "Custom profile"))
|
||||||
profile.setName(new_name)
|
profile.setName(new_name)
|
||||||
|
profile._id = new_name
|
||||||
|
|
||||||
if self._machineHasOwnQualities():
|
if self._machineHasOwnQualities():
|
||||||
profile.setDefinition(self._activeDefinition())
|
profile.setDefinition(self._activeDefinition())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue