1
0
Fork 1
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:
Pieter van der Kloet 2012-10-30 06:51:22 +01:00
parent 1c06a06f91
commit 6e758af05c

View file

@ -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()) {