Make verified material containers read-only, even for variants.

part CURA-6856
This commit is contained in:
Remco Burema 2019-10-31 19:01:23 +01:00
parent 5908ff60ee
commit aca7f4551e
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

@ -720,6 +720,8 @@ class XmlMaterialProfile(InstanceContainer):
new_hotend_material._dirty = False
if is_new_material:
if ContainerRegistry.getInstance().isReadOnly(self.getId()):
ContainerRegistry.getInstance().setReadOnlyExplicitly(new_hotend_material.getId())
containers_to_add.append(new_hotend_material)
# there is only one ID for a machine. Once we have reached here, it means we have already found