Account for global container stack being None in the backend plugin

This commit is contained in:
Arjen Hiemstra 2016-05-25 11:23:23 +02:00
parent b1f887a70f
commit 396f023bdf

View file

@ -57,7 +57,8 @@ class CuraEngineBackend(Backend):
#When any setting property changed, call the _onSettingChanged function.
#This function will then see if we need to start slicing.
Application.getInstance().getGlobalContainerStack().propertyChanged.connect(self._onSettingChanged)
if Application.getInstance().getGlobalContainerStack():
Application.getInstance().getGlobalContainerStack().propertyChanged.connect(self._onSettingChanged)
#When you update a setting and other settings get changed through inheritance, many propertyChanged signals are fired.
#This timer will group them up, and only slice for the last setting changed signal.