CURA-4451 Minor changes

This commit is contained in:
Diego Prado Gesto 2017-10-26 16:53:31 +02:00
parent 524ace9b04
commit b9c318d432
3 changed files with 2 additions and 10 deletions

View file

@ -166,7 +166,7 @@ class ProfilesModel(InstanceContainersModel):
for item in containers:
profile = container_registry.findContainers(id = item["id"])
# when the profile is not supported
# When for some reason there is no profile container in the registry
if not profile:
self._setItemLayerHeight(item, "", "")
item["available"] = False
@ -175,7 +175,7 @@ class ProfilesModel(InstanceContainersModel):
profile = profile[0]
# empty qualities should show in the list (they are "Not Supported" profiles)
# When there is a profile but it's an empty quality should. It's shown in the list (they are "Not Supported" profiles)
if profile.getId() == "empty_quality":
self._setItemLayerHeight(item, "", "")
item["available"] = True