mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Launcher cfg is stored in the user location only, fixes Bug #414
This commit is contained in:
parent
1c06a06f91
commit
6e758af05c
@ -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…
x
Reference in New Issue
Block a user