mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix profile load when GLideN64.ini doesn't exist The logic looked incorrect here, but Qt loaded the profile correctly somehow. I tested this change and it doesn't change anything in the Qt version (which is good)
This commit is contained in:
parent
d00cf9f214
commit
9bf9202c47
|
@ -161,7 +161,7 @@ void loadSettings(const QString & _strIniFolder)
|
||||||
settings.beginGroup(strUserProfile);
|
settings.beginGroup(strUserProfile);
|
||||||
writeSettings(_strIniFolder);
|
writeSettings(_strIniFolder);
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
} else {
|
}
|
||||||
QString profile = settings.value("profile", strUserProfile).toString();
|
QString profile = settings.value("profile", strUserProfile).toString();
|
||||||
if (settings.childGroups().indexOf(profile) >= 0) {
|
if (settings.childGroups().indexOf(profile) >= 0) {
|
||||||
settings.beginGroup(profile);
|
settings.beginGroup(profile);
|
||||||
|
@ -172,7 +172,6 @@ void loadSettings(const QString & _strIniFolder)
|
||||||
if (config.version != CONFIG_VERSION_CURRENT)
|
if (config.version != CONFIG_VERSION_CURRENT)
|
||||||
rewriteSettings = true;
|
rewriteSettings = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (rewriteSettings) {
|
if (rewriteSettings) {
|
||||||
// Keep settings up-to-date
|
// Keep settings up-to-date
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user