CURA-4807 fix not choosing 'not supported' if there are valid options after changing variant; partly undoing 4abbd4b988

This commit is contained in:
Jack Ha 2018-01-16 15:36:57 +01:00
parent 51b49c89f4
commit 54698ada7f
2 changed files with 1 additions and 4 deletions

View file

@ -87,7 +87,7 @@ class ProfilesModel(InstanceContainersModel):
if quality.getMetaDataEntry("quality_type") not in quality_type_set:
result.append(quality)
if len(result) > 1:
if len(result) > 1 and self._empty_quality in result:
result.remove(self._empty_quality)
return {item.getId(): item for item in result}, {} #Only return true profiles for now, no metadata. The quality manager is not able to get only metadata yet.