mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 11:47:50 -06:00
Return the empty container if there are no results when listing qualities
Contributes to CURA-2271
This commit is contained in:
parent
68662561e8
commit
c6afb14a09
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,10 @@ class QualityManager:
|
||||||
if not result:
|
if not result:
|
||||||
basic_materials = self._getBasicMaterials(material_container)
|
basic_materials = self._getBasicMaterials(material_container)
|
||||||
result = self._getFilteredContainersForStack(machine_definition, basic_materials, **criteria)
|
result = self._getFilteredContainersForStack(machine_definition, basic_materials, **criteria)
|
||||||
|
|
||||||
|
if not result:
|
||||||
|
result = [ self._empty_quality_container ]
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
## Find all quality changes for a machine.
|
## Find all quality changes for a machine.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue