Fix setting machine changes profile with new specified container stacks

Don't need to insert it, because there's already a slot for it on the stack. In fact, you're not allowed to insert anything.

Contributes to issue CURA-3497.
This commit is contained in:
Ghostkeeper 2017-05-03 15:38:20 +02:00
parent c42d092b0f
commit 337be1b9be
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -1,4 +1,4 @@
# Copyright (c) 2016 Ultimaker B.V. # Copyright (c) 2017 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher. # Cura is released under the terms of the AGPLv3 or higher.
from PyQt5.QtCore import pyqtProperty, pyqtSignal from PyQt5.QtCore import pyqtProperty, pyqtSignal
@ -101,8 +101,7 @@ class MachineSettingsAction(MachineAction):
definition_changes_container.addMetaDataEntry("type", "definition_changes") definition_changes_container.addMetaDataEntry("type", "definition_changes")
self._container_registry.addContainer(definition_changes_container) self._container_registry.addContainer(definition_changes_container)
# Insert definition_changes between the definition and the variant container_stack.definitionChanges = definition_changes_container
container_stack.insertContainer(-1, definition_changes_container)
return definition_changes_container return definition_changes_container