From 68fc9af4c2b4b0e1f4eab987e685dfa5a9904174 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Mon, 1 Aug 2016 16:38:31 +0200 Subject: [PATCH] Fix removing extruder stacks and extruder user profile CURA-1898 broke fix for CURA-1896 --- cura/Settings/MachineManager.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index ce60c6d3a6..6a180593c5 100644 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -744,10 +744,7 @@ class MachineManager(QObject): # If the machine that is being removed is the currently active machine, set another machine as the active machine. activate_new_machine = (self._global_container_stack and self._global_container_stack.getId() == machine_id) - stacks = UM.Settings.ContainerRegistry.getInstance().findContainerStacks(id = machine_id) - if not stacks: - return - ExtruderManager.getInstance().removeMachineExtruders(stacks[0].getBottom().getId()) + ExtruderManager.getInstance().removeMachineExtruders(machine_id) containers = UM.Settings.ContainerRegistry.getInstance().findInstanceContainers(type = "user", machine = machine_id) for container in containers: