Fix the using of protected property in CustomQualityProfilesModel

This commit is contained in:
Lipu Fei 2018-03-01 11:40:22 +01:00
parent 50c61c9934
commit 154d104f95

View file

@ -12,7 +12,7 @@ class CustomQualityProfilesModel(QualityProfilesModel):
def _update(self): def _update(self):
Logger.log("d", "Updating %s ...", self.__class__.__name__) 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: if active_global_stack is None:
self.setItems([]) self.setItems([])
Logger.log("d", "No active GlobalStack, set %s as empty.", self.__class__.__name__) Logger.log("d", "No active GlobalStack, set %s as empty.", self.__class__.__name__)