Always set quality type to normal

We don't know the actual quality type, the quality profile that this profile is based on. Maybe there isn't one, even. As a solution we always base imported custom quality profiles on normal.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-09-08 16:41:08 +02:00
parent 84e91e2bf2
commit a4c47f26d6

View file

@ -94,6 +94,7 @@ class Profile:
config.set("general", "definition", "fdmprinter") #In this case, the machine definition is unknown, and it might now have machine-specific profiles, in which case this will fail.
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: