From f2e054b449e343f3d99bb0e38f5649eae8500ccf Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Tue, 11 Oct 2016 11:01:14 +0200 Subject: [PATCH] Fix the active quality id activeQualityId and activeQualityName were not referencing the same profile. activeMaterialName seems to have the correct one. CURA-2271 --- cura/Settings/MachineManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 46c1ec09b7..7508fc6952 100644 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -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 ""