From 2460b37c994e0fc03f0319945bf31a810a11e926 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Wed, 15 Jun 2016 11:13:31 +0200 Subject: [PATCH] Fix check for self._global_container_stack for consistency CURA-340 --- cura/MachineManagerModel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/MachineManagerModel.py b/cura/MachineManagerModel.py index 46425ba55e..2ef9932d24 100644 --- a/cura/MachineManagerModel.py +++ b/cura/MachineManagerModel.py @@ -446,7 +446,7 @@ class MachineManagerModel(QObject): @pyqtProperty(str, notify = globalContainerChanged) def activeDefinitionId(self): - if self._active_container_stack: + if self._global_container_stack: definition = self._global_container_stack.getBottom() if definition: return definition.id @@ -480,14 +480,14 @@ class MachineManagerModel(QObject): @pyqtProperty(bool, notify = globalContainerChanged) def hasMaterials(self): - if self._active_container_stack: + if self._global_container_stack: return bool(self._global_container_stack.getMetaDataEntry("has_materials", False)) return False @pyqtProperty(bool, notify = globalContainerChanged) def hasVariants(self): - if self._active_container_stack: + if self._global_container_stack: return bool(self._global_container_stack.getMetaDataEntry("has_variants", False)) return False