Fix of crash in config wizard

Missing has_section() before get_section()
This commit is contained in:
David Kocik 2023-02-16 13:22:09 +01:00
parent a17a694604
commit fac44c8c5e

View File

@ -3175,6 +3175,7 @@ bool ConfigWizard::priv::apply_config(AppConfig *app_config, PresetBundle *prese
// apply materials in app_config
for (const std::string& section_name : {AppConfig::SECTION_FILAMENTS, AppConfig::SECTION_MATERIALS})
if (appconfig_new.has_section(section_name))
app_config->set_section(section_name, appconfig_new.get_section(section_name));
app_config->set_vendors(appconfig_new);