Move the definition_changes fix to CuraContainerStack

CURA-5281
This commit is contained in:
Lipu Fei 2018-04-25 16:11:56 +02:00
parent 50e2db47c8
commit df1e15b1e5
2 changed files with 7 additions and 7 deletions

View file

@ -283,6 +283,13 @@ class CuraContainerStack(ContainerStack):
self._containers = new_containers
# CURA-5281
# Some stacks can have empty definition_changes containers which will cause problems.
# Make sure that all stacks here have non-empty definition_changes containers.
if isinstance(new_containers[_ContainerIndexes.DefinitionChanges], type(self._empty_instance_container)):
from cura.Settings.CuraStackBuilder import CuraStackBuilder
CuraStackBuilder.createDefinitionChangesContainer(self, self.getId() + "_settings")
## protected:
# Helper to make sure we emit a PyQt signal on container changes.