elm: fix config upgrades for user profiles

loading the system profile only works if the current profile has the
same name as a system profile
This commit is contained in:
Mike Blumenkrantz 2018-02-27 18:15:10 -05:00
parent bf7890c806
commit 7f67f99111
1 changed files with 6 additions and 0 deletions

View File

@ -1642,6 +1642,12 @@ _config_system_load(void)
_elm_profile);
ef = eet_open(buf, EET_FILE_MODE_READ);
if (!ef)
{
_elm_data_dir_snprintf(buf, sizeof(buf), "config/default/base.cfg");
ef = eet_open(buf, EET_FILE_MODE_READ);
}
if (ef)
{
cfg = eet_data_read(ef, _config_edd, "config");