Fix the active quality id

activeQualityId and activeQualityName were not referencing the same profile. activeMaterialName seems to have the correct one.

CURA-2271
This commit is contained in:
fieldOfView 2016-10-11 11:01:14 +02:00
parent bf0c6dc1d4
commit f2e054b449

View file

@ -475,11 +475,11 @@ class MachineManager(QObject):
@pyqtProperty(str, notify=activeQualityChanged)
def activeQualityId(self):
if self._global_container_stack:
if self._active_container_stack and self._global_container_stack:
quality = self._global_container_stack.findContainer({"type": "quality_changes"})
if quality and quality != self._empty_quality_changes_container:
return quality.getId()
quality = self._global_container_stack.findContainer({"type": "quality"})
quality = self._active_container_stack.findContainer({"type": "quality"})
if quality:
return quality.getId()
return ""