Pass strings to writing configparser

When setting fields in configparser, it must be a string. No ints.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-04-19 17:26:28 +02:00 committed by Ghostkeeper
parent aeecdd9e0e
commit 149e873eb6
2 changed files with 4 additions and 4 deletions

View file

@ -96,14 +96,14 @@ class Profile:
for key, value in self._settings.items():
if key == "speed_support_lines": #Setting key was changed for 2.2.
key = "speed_support_infill"
config.set("settings", key, value)
config.set("settings", key, str(value))
if self._changed_settings_defaults:
config.add_section("defaults")
for key, value in self._changed_settings_defaults.items():
if key == "speed_support_lines": #Setting key was changed for 2.2.
key = "speed_support_infill"
config.set("defaults", key, value)
config.set("defaults", key, str(value))
if self._disabled_settings_defaults:
config.add_section("disabled_defaults")