diff options
author | Ghostkeeper <rubend@tutanota.com> | 2017-06-27 16:14:26 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2017-06-27 16:14:26 +0300 |
commit | b2b9b1bedea3f71a18348e8beed8327bd2cc026c (patch) | |
tree | ebc2f7b3a74659b0a32ce6749de4283b50525713 | |
parent | df2ec7bd734b9e389f9a8472455a374b2cc43f6e (diff) |
Fix checking if container stack exists
It was checking a container stack ID against the definition containers, which doesn't match.
Contributes to issue CURA-3973.
-rwxr-xr-x | cura/Settings/MachineManager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 1c47e9967a..cead5ad4f7 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -91,7 +91,7 @@ class MachineManager(QObject): self._printer_output_devices = [] Application.getInstance().getOutputDeviceManager().outputDevicesChanged.connect(self._onOutputDevicesChanged) - if active_machine_id != "" and ContainerRegistry.getInstance().findDefinitionContainers(id = active_machine_id): + if active_machine_id != "" and ContainerRegistry.getInstance().findContainerStacks(id = active_machine_id): # An active machine was saved, so restore it. self.setActiveMachine(active_machine_id) if self._global_container_stack and self._global_container_stack.getProperty("machine_extruder_count", "value") > 1: |