Fix keep user settings dialog.

This commit is contained in:
Jack Ha 2016-08-16 13:12:34 +02:00
parent 2969aafb6d
commit 759ef29b1d

View file

@ -596,8 +596,7 @@ class MachineManager(QObject):
elif button == QMessageBox.No: elif button == QMessageBox.No:
# No, discard the settings in the user profile # No, discard the settings in the user profile
global_stack = Application.getInstance().getGlobalContainerStack() global_stack = Application.getInstance().getGlobalContainerStack()
for extruder in ExtruderManager.getInstance().getMachineExtruders(global_stack.getId()):
for extruder in ExtruderManager.ExtruderManager.getInstance().getMachineExtruders(global_stack.getId()):
extruder.getTop().clear() extruder.getTop().clear()
global_stack.getTop().clear() global_stack.getTop().clear()