mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:23:53 +00:00
Merge pull request #2516 from Capostrophic/launcher
Launcher: Avoid Qt "opening user openmw.cfg twice" warning
This commit is contained in:
commit
6c006c9c87
1 changed files with 2 additions and 1 deletions
|
@ -329,6 +329,7 @@ bool Launcher::MainDialog::setupGameSettings()
|
|||
stream.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||
|
||||
mGameSettings.readUserFile(stream);
|
||||
file.close();
|
||||
}
|
||||
|
||||
// Now the rest - priority: user > local > global
|
||||
|
@ -353,8 +354,8 @@ bool Launcher::MainDialog::setupGameSettings()
|
|||
stream.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||
|
||||
mGameSettings.readFile(stream);
|
||||
file.close();
|
||||
}
|
||||
file.close();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue