mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
Avoid Qt "opening user openmw.cfg twice" warning
This commit is contained in:
parent
2e05e0e829
commit
9788a776b9
@ -329,6 +329,7 @@ bool Launcher::MainDialog::setupGameSettings()
|
|||||||
stream.setCodec(QTextCodec::codecForName("UTF-8"));
|
stream.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||||
|
|
||||||
mGameSettings.readUserFile(stream);
|
mGameSettings.readUserFile(stream);
|
||||||
|
file.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now the rest - priority: user > local > global
|
// Now the rest - priority: user > local > global
|
||||||
@ -353,8 +354,8 @@ bool Launcher::MainDialog::setupGameSettings()
|
|||||||
stream.setCodec(QTextCodec::codecForName("UTF-8"));
|
stream.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||||
|
|
||||||
mGameSettings.readFile(stream);
|
mGameSettings.readFile(stream);
|
||||||
|
file.close();
|
||||||
}
|
}
|
||||||
file.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user