mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +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);
|
||||
writeSettings(_strIniFolder);
|
||||
settings.endGroup();
|
||||
} else {
|
||||
}
|
||||
QString profile = settings.value("profile", strUserProfile).toString();
|
||||
if (settings.childGroups().indexOf(profile) >= 0) {
|
||||
settings.beginGroup(profile);
|
||||
|
@ -172,7 +172,6 @@ void loadSettings(const QString & _strIniFolder)
|
|||
if (config.version != CONFIG_VERSION_CURRENT)
|
||||
rewriteSettings = true;
|
||||
}
|
||||
}
|
||||
if (rewriteSettings) {
|
||||
// Keep settings up-to-date
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user