diff options
author | Jaime van Kessel <nallath@gmail.com> | 2016-10-25 12:16:54 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2016-10-25 12:16:54 +0300 |
commit | 844b9729f4f2f8e8ec1e0fea45c1348b8610b73d (patch) | |
tree | cece0975586ee8e423cc64a661ffaa30ea924742 /cura | |
parent | ecbe4b264ad7c782aceb8cea7d952b56a246c339 (diff) |
Fixed critical errors when first adding UM3
Diffstat (limited to 'cura')
-rw-r--r-- | cura/Settings/ProfilesModel.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cura/Settings/ProfilesModel.py b/cura/Settings/ProfilesModel.py index 6f17349edd..7d39d1c220 100644 --- a/cura/Settings/ProfilesModel.py +++ b/cura/Settings/ProfilesModel.py @@ -80,7 +80,10 @@ class ProfilesModel(InstanceContainersModel): quality = quality_result["quality"]
break
else: #No global container stack in the results:
- quality = quality_results[0]["quality"] #Take any of the extruders.
+ if quality_results:
+ quality = quality_results[0]["quality"] #Take any of the extruders.
+ else:
+ quality = None
if quality and quality.hasProperty("layer_height", "value"):
item["layer_height"] = str(quality.getProperty("layer_height", "value")) + unit
yield item
|