Fix removeMaterial.

The base_file must be removed first, or it gets loaded halfway during remove containers.

Contributes to issue CURA-4243.
This commit is contained in:
Jack Ha 2017-12-06 11:02:50 +01:00
parent 7d24933835
commit eb171231c2
3 changed files with 10 additions and 2 deletions

View file

@ -118,7 +118,7 @@ class ContainerManager(QObject):
def removeContainer(self, container_id):
containers = self._container_registry.findContainers(id = container_id)
if not containers:
Logger.log("w", "Could remove container %s because it was not found.", container_id)
Logger.log("w", "Could not remove container %s because it was not found.", container_id)
return False
self._container_registry.removeContainer(containers[0].getId())