From 318b6cf87bc2836216c4dfc628c79f8fa40a8811 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 8 Sep 2016 17:05:26 +0200 Subject: [PATCH] Always set type to quality_changes Custom profiles are always quality changes. They should always say quality in the original anyway; that was an assumption we've made thousands of times. Contributes to issue CURA-844. --- plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py index 7eb504eaa5..cfe00fc72a 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py @@ -95,10 +95,7 @@ class Profile: config.add_section("metadata") config.set("metadata", "quality_type", "normal") #This feature doesn't exist in 2.1 yet, so we don't know the actual quality type. For now, always base it on normal. - if self._type: - config.set("metadata", "type", self._type) - else: - config.set("metadata", "type", "quality") + config.set("metadata", "type", "quality_changes") if self._weight: config.set("metadata", "weight", str(self._weight)) if self._machine_variant_name: