Fix some quality_changes being incorrectly shown for some configurations

CURA-7589
This commit is contained in:
Jaime van Kessel 2020-08-06 16:59:30 +02:00
parent c9239ed32e
commit eb17e146bc
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 16 additions and 3 deletions

View file

@ -365,6 +365,9 @@ class QualityManagementModel(ListModel):
# CURA-6913 Note that custom qualities can be based on "not supported", so the quality group can be None.
quality_group = quality_group_dict.get(quality_changes_group.quality_type)
quality_type = quality_changes_group.quality_type
if not quality_changes_group.is_available:
continue
item = {"name": quality_changes_group.name,
"is_read_only": False,
"quality_group": quality_group,