mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Check before removing
Cura shouldn't crash when the abstract machine isn't in the other_machine_stack
This commit is contained in:
parent
5542eec0c4
commit
fe4679e4e8
1 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,9 @@ class MachineListModel(ListModel):
|
|||
online_machine_stacks = list(filter(lambda machine: machine.hasNetworkedConnection(), online_machine_stacks))
|
||||
online_machine_stacks.sort(key=lambda machine: machine.getName().upper())
|
||||
|
||||
other_machine_stacks.remove(abstract_machine)
|
||||
if abstract_machine in other_machine_stacks:
|
||||
other_machine_stacks.remove(abstract_machine)
|
||||
|
||||
if abstract_machine in online_machine_stacks:
|
||||
online_machine_stacks.remove(abstract_machine)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue