Fix "keep current settings" dialog so it properly clears on "No"

Contributes to CURA-2006
This commit is contained in:
Arjen Hiemstra 2016-08-10 10:57:42 +02:00
parent e2a4aeb8ff
commit 450dcac394

View file

@ -631,7 +631,12 @@ class MachineManager(QObject):
pass
elif button == QMessageBox.No:
# No, discard the settings in the user profile
self.clearUserSettings()
global_stack = Application.getInstance().getGlobalContainerStack()
for extruder in ExtruderManager.ExtruderManager.getInstance().getMachineExtruders(global_stack.getId()):
extruder.getTop().clear()
global_stack.getTop().clear()
@pyqtProperty(str, notify = activeVariantChanged)
def activeVariantName(self):