Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2022-08-26 15:08:03 +0300
committerJaime van Kessel <nallath@gmail.com>2022-08-26 15:08:03 +0300
commit506f2b982075c3a525fbba0ab088cf35771c688c (patch)
treef8d29a86ed82fc8564ae0adf540faa320c2a1c95 /cura/Machines
parent46532828a402fd2ce4b925b6dac85da57a9c8af4 (diff)
Remove code duplication in createAbstractMachine
This also caused a crash when an abstract machine with multiple extruders was selected CURA-8463
Diffstat (limited to 'cura/Machines')
-rw-r--r--cura/Machines/Models/MachineListModel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/Machines/Models/MachineListModel.py b/cura/Machines/Models/MachineListModel.py
index a758060384..b3e3bd4f71 100644
--- a/cura/Machines/Models/MachineListModel.py
+++ b/cura/Machines/Models/MachineListModel.py
@@ -81,7 +81,8 @@ class MachineListModel(ListModel):
for stack in online_machine_stacks:
self.addItem(stack)
# Remove this machine from the other stack list
- other_machine_stacks.remove(stack)
+ if stack in other_machine_stacks:
+ other_machine_stacks.remove(stack)
for stack in other_machine_stacks:
self.addItem(stack)