Make sure the ID stays in the metadata when clearing it

Previously the ID was also exempted from the clear.

Contributes to issue CURA-4243.
This commit is contained in:
Ghostkeeper 2017-10-30 15:54:26 +01:00
parent 3a9c8d16a2
commit 8eaec149fa
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -386,7 +386,7 @@ class XmlMaterialProfile(InstanceContainer):
first.append(element)
def clearData(self):
self._metadata = {}
self._metadata = {"id": self.getId()}
self.setName("")
self._definition = None
self._instances = {}