mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 10:18:59 +08:00
Handle the fact that findContainers might end up returning None
Since we now do not necessarily have a container with the specified type.
This commit is contained in:
parent
0fee41d519
commit
af3f340fc2
@ -699,7 +699,7 @@ class MachineManager(QObject):
|
||||
Logger.log("w", "While trying to set the active material, no material was found to replace it.")
|
||||
return
|
||||
|
||||
if old_quality_changes.getId() == "empty_quality_changes":
|
||||
if old_quality_changes and old_quality_changes.getId() == "empty_quality_changes":
|
||||
old_quality_changes = None
|
||||
|
||||
self.blurSettings.emit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user