Remove global changed check that prevents signal emit

CURA-5157
This commit is contained in:
Lipu Fei 2018-03-27 14:32:37 +02:00
parent ca4cb419ff
commit 98eed89686

View file

@ -231,13 +231,11 @@ class MachineManager(QObject):
extruder_stack.containersChanged.disconnect(self._onInstanceContainersChanged)
# Update the local global container stack reference
old_global_container_stack = self._global_container_stack
self._global_container_stack = Application.getInstance().getGlobalContainerStack()
if self._global_container_stack:
self.updateDefaultExtruder()
self.updateNumberExtrudersEnabled()
if old_global_container_stack != self._global_container_stack:
self.globalContainerChanged.emit()
self.globalContainerChanged.emit()
# after switching the global stack we reconnect all the signals and set the variant and material references
if self._global_container_stack: