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:
Arjen Hiemstra 2017-04-18 17:37:05 +02:00
parent 0fee41d519
commit af3f340fc2

View file

@ -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()