Browse Source

Fix the using of protected property in CustomQualityProfilesModel

Lipu Fei 7 years ago
parent
commit
154d104f95
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/Machines/Models/CustomQualityProfilesModel.py

+ 1 - 1
cura/Machines/Models/CustomQualityProfilesModel.py

@@ -12,7 +12,7 @@ class CustomQualityProfilesModel(QualityProfilesModel):
     def _update(self):
         Logger.log("d", "Updating %s ...", self.__class__.__name__)
 
-        active_global_stack = Application.getInstance().getMachineManager()._global_container_stack
+        active_global_stack = Application.getInstance().getMachineManager().activeMachine
         if active_global_stack is None:
             self.setItems([])
             Logger.log("d", "No active GlobalStack, set %s as empty.", self.__class__.__name__)