Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjen Hiemstra <ahiemstra@heimr.nl>2016-10-10 14:34:45 +0300
committerArjen Hiemstra <ahiemstra@heimr.nl>2016-10-10 14:34:45 +0300
commitc6afb14a091e891b60cfb2e56bf53c19bd4c4bf9 (patch)
tree43edf1aa80a66dd674de623e4e1ffc93f476ee2b
parent68662561e8faae7b45e980e6db5850aae2a13976 (diff)
Return the empty container if there are no results when listing qualities
Contributes to CURA-2271
-rw-r--r--cura/QualityManager.py4
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.