Unverified Commit 55377aa5 by Rémi Verschelde Committed by GitHub

Merge pull request #38876 from paulloz/fix-import-params-error

Fix error with 'params' when import dock doesn't define any parameter
parents 1d573969 b7a69467
......@@ -441,7 +441,9 @@ void ImportDock::_reimport() {
} else {
//override entirely
config->set_value("remap", "importer", importer_name);
config->erase_section("params");
if (config->has_section("params")) {
config->erase_section("params");
}
for (List<PropertyInfo>::Element *E = params->properties.front(); E; E = E->next()) {
config->set_value("params", E->get().name, params->values[E->get().name]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment