diff options
author | Jaime van Kessel <nallath@gmail.com> | 2016-10-16 17:14:05 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2016-10-16 17:14:05 +0300 |
commit | cda8fd5827e5f7b78b793198532be58d712d389f (patch) | |
tree | 02cfce46d92cc5ae7a1710c75e76a7cd6182a7b2 /cura | |
parent | 95f2b84fb5e306fabaadf17723c651b30aaa4e97 (diff) |
Revert buttons now work for single extrusion machines again
Diffstat (limited to 'cura')
-rw-r--r-- | cura/Settings/MachineManager.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 16d748f8d2..08d1bff0e9 100644 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -397,9 +397,10 @@ class MachineManager(QObject): stacks = ExtruderManager.getInstance().getMachineExtruders(self._global_container_stack.getId()) for stack in stacks: - container = stack.getTop() - container.removeInstance(key, postpone_emit=True) - send_emits_containers.append(container) + if stack is not None: + container = stack.getTop() + container.removeInstance(key, postpone_emit=True) + send_emits_containers.append(container) for container in send_emits_containers: container.sendPostponedEmits() |