forked from teamnwah/openmw-tes3coop
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()
|
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
|
// Open our config file
|
||||||
|
QString config = QString::fromStdString((mCfgMgr.getUserPath() / "launcher.cfg").string());
|
||||||
mLauncherConfig = new QSettings(config, QSettings::IniFormat);
|
mLauncherConfig = new QSettings(config, QSettings::IniFormat);
|
||||||
file.close();
|
|
||||||
|
|
||||||
// Make sure we have no groups open
|
// Make sure we have no groups open
|
||||||
while (!mLauncherConfig->group().isEmpty()) {
|
while (!mLauncherConfig->group().isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue