diff options
author | Arjen Hiemstra <ahiemstra@heimr.nl> | 2016-10-10 14:34:45 +0300 |
---|---|---|
committer | Arjen Hiemstra <ahiemstra@heimr.nl> | 2016-10-10 14:34:45 +0300 |
commit | c6afb14a091e891b60cfb2e56bf53c19bd4c4bf9 (patch) | |
tree | 43edf1aa80a66dd674de623e4e1ffc93f476ee2b /cura/QualityManager.py | |
parent | 68662561e8faae7b45e980e6db5850aae2a13976 (diff) |
Return the empty container if there are no results when listing qualities
Contributes to CURA-2271
Diffstat (limited to 'cura/QualityManager.py')
-rw-r--r-- | cura/QualityManager.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cura/QualityManager.py b/cura/QualityManager.py index 6deea4053e..a304eb1db3 100644 --- a/cura/QualityManager.py +++ b/cura/QualityManager.py @@ -109,6 +109,10 @@ class QualityManager: if not result:
basic_materials = self._getBasicMaterials(material_container)
result = self._getFilteredContainersForStack(machine_definition, basic_materials, **criteria)
+
+ if not result:
+ result = [ self._empty_quality_container ]
+
return result
## Find all quality changes for a machine.
|