Fix crash when importing profile that has different quality_definition

CURA-6847
This commit is contained in:
Jaime van Kessel 2019-10-03 09:51:45 +02:00
parent fba7a6ff33
commit 1def289bb9
No known key found for this signature in database
GPG Key ID: 3710727397403C91

View File

@ -238,7 +238,7 @@ class CuraContainerRegistry(ContainerRegistry):
# Get the expected machine definition.
# i.e.: We expect gcode for a UM2 Extended to be defined as normal UM2 gcode...
profile_definition = container_tree.machines[machine_definition.getId()].quality_definition
profile_definition = machine_definition.getMetaDataEntry("quality_definition", "")
expected_machine_definition = container_tree.machines[global_stack.definition.getId()].quality_definition
# And check if the profile_definition matches either one (showing error if not):