CURA-4815 When creating the unique name for a machine, don't look at the

definition instance container for the id, just look at the container
stack ids.
This commit is contained in:
Diego Prado Gesto 2018-01-17 10:57:11 +01:00
parent fad43be23b
commit 26371c9c3a

View file

@ -94,7 +94,7 @@ class CuraContainerRegistry(ContainerRegistry):
def _containerExists(self, container_type, container_name):
container_class = ContainerStack if container_type == "machine" else InstanceContainer
return self.findContainersMetadata(id = container_name, type = container_type, ignore_case = True) or \
return self.findContainersMetadata(container_type = container_class, id = container_name, type = container_type, ignore_case = True) or \
self.findContainersMetadata(container_type = container_class, name = container_name, type = container_type)
## Exports an profile to a file