Simplification of

1.40.1-rc2 fails to save the modified AMF settings #1035
This commit is contained in:
bubnikv 2018-07-17 10:41:17 +02:00
parent 161a2bc6f8
commit c34a713c8c
3 changed files with 9 additions and 13 deletions

View file

@ -505,6 +505,9 @@ Preset& PresetCollection::load_external_preset(
// Insert a new profile.
Preset &preset = this->load_preset(path, new_name, std::move(cfg), select);
preset.is_external = true;
if (&this->get_selected_preset() == &preset)
this->get_edited_preset().is_external = true;
return preset;
}