mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 17:39:44 +00:00
Launcher cfg is stored in the user location only, fixes Bug #414
This commit is contained in:
parent
1c06a06f91
commit
6e758af05c
1 changed files with 1 additions and 8 deletions
|
@ -220,16 +220,9 @@ void DataFilesPage::createActions()
|
|||
|
||||
void DataFilesPage::setupConfig()
|
||||
{
|
||||
QString config = QString::fromStdString((mCfgMgr.getLocalPath() / "launcher.cfg").string());
|
||||
QFile file(config);
|
||||
|
||||
if (!file.exists()) {
|
||||
config = QString::fromStdString((mCfgMgr.getUserPath() / "launcher.cfg").string());
|
||||
}
|
||||
|
||||
// Open our config file
|
||||
QString config = QString::fromStdString((mCfgMgr.getUserPath() / "launcher.cfg").string());
|
||||
mLauncherConfig = new QSettings(config, QSettings::IniFormat);
|
||||
file.close();
|
||||
|
||||
// Make sure we have no groups open
|
||||
while (!mLauncherConfig->group().isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue