fixed bug with customized .ini files

This commit is contained in:
Rafael 2016-04-13 20:38:26 +02:00
parent 4b67d2845d
commit 704337bab6
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ CrewDatabase::CrewDatabase(QObject *parent) : QObject(parent)
QSettings confPathSettings("Syping","gta5sync");
confPathSettings.beginGroup("Database");
QString confPathFile = confPathSettings.value("Location", defaultConfPath).toString();
QString confPathFile = confPathSettings.value("Crews", defaultConfPath).toString();
confPathSettings.endGroup();
crewDB = new QSettings(confPathFile, QSettings::IniFormat);

View file

@ -31,7 +31,7 @@ ProfileDatabase::ProfileDatabase(QObject *parent) : QObject(parent)
QSettings confPathSettings("Syping","gta5sync");
confPathSettings.beginGroup("Database");
QString confPathFile = confPathSettings.value("Location", defaultConfPath).toString();
QString confPathFile = confPathSettings.value("Players", defaultConfPath).toString();
confPathSettings.endGroup();
profileDB = new QSettings(confPathFile, QSettings::IniFormat);