INI load: Fix cfg fallback name load with missing groups
This commit is contained in:
@@ -717,7 +717,7 @@ static void IniLoadSettings(IniFile &ini, const SettingTable &settings_table, co
|
|||||||
if (group = ini.GetGroup(s.substr(0, sc)); group != nullptr) item = group->GetItem(s.substr(sc + 1));
|
if (group = ini.GetGroup(s.substr(0, sc)); group != nullptr) item = group->GetItem(s.substr(sc + 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (item == nullptr && sd->guiproc != nullptr) {
|
if (group != nullptr && item == nullptr && sd->guiproc != nullptr) {
|
||||||
SettingOnGuiCtrlData data;
|
SettingOnGuiCtrlData data;
|
||||||
data.type = SOGCT_CFG_FALLBACK_NAME;
|
data.type = SOGCT_CFG_FALLBACK_NAME;
|
||||||
if (sd->guiproc(data)) {
|
if (sd->guiproc(data)) {
|
||||||
|
Reference in New Issue
Block a user