CURA-5218 Disable the Activate and Duplicate button in the management

page if the selected profile is not supported
This commit is contained in:
Diego Prado Gesto 2018-04-20 17:04:51 +02:00
parent 626c424a02
commit b8a26f3187
2 changed files with 4 additions and 4 deletions

View file

@ -324,8 +324,8 @@ class MachineManager(QObject):
Logger.log("i", "Machine '%s' quality changes set to '%s'",
global_stack.getName(), new_quality_changes_group.name)
else:
if quality_type in quality_groups:
new_quality_group = quality_groups[quality_type]
new_quality_group = quality_groups.get(quality_type)
if new_quality_group is not None:
self._setQualityGroup(new_quality_group, empty_quality_changes = True)
same_quality_found = True
Logger.log("i", "Machine '%s' quality set to '%s'",