mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue