From 5706a540d96e8c2b9b9109a118cb11e9064993b8 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 9 May 2017 13:39:04 +0200 Subject: [PATCH] Only set global stack in addMachine() if there was none --- cura/Settings/MachineManager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 2e44a60deb..79b4a855f6 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -343,7 +343,9 @@ class MachineManager(QObject): def addMachine(self, name: str, definition_id: str) -> None: new_stack = CuraStackBuilder.createMachine(name, definition_id) if new_stack: - Application.getInstance().setGlobalContainerStack(new_stack) + # only set the global container stack if there was none + if self._global_container_stack is None: + Application.getInstance().setGlobalContainerStack(new_stack) else: Logger.log("w", "Failed creating a new machine!")