fixed bug with customized .ini files
This commit is contained in:
parent
4b67d2845d
commit
704337bab6
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ CrewDatabase::CrewDatabase(QObject *parent) : QObject(parent)
|
||||||
|
|
||||||
QSettings confPathSettings("Syping","gta5sync");
|
QSettings confPathSettings("Syping","gta5sync");
|
||||||
confPathSettings.beginGroup("Database");
|
confPathSettings.beginGroup("Database");
|
||||||
QString confPathFile = confPathSettings.value("Location", defaultConfPath).toString();
|
QString confPathFile = confPathSettings.value("Crews", defaultConfPath).toString();
|
||||||
confPathSettings.endGroup();
|
confPathSettings.endGroup();
|
||||||
|
|
||||||
crewDB = new QSettings(confPathFile, QSettings::IniFormat);
|
crewDB = new QSettings(confPathFile, QSettings::IniFormat);
|
||||||
|
|
|
@ -31,7 +31,7 @@ ProfileDatabase::ProfileDatabase(QObject *parent) : QObject(parent)
|
||||||
|
|
||||||
QSettings confPathSettings("Syping","gta5sync");
|
QSettings confPathSettings("Syping","gta5sync");
|
||||||
confPathSettings.beginGroup("Database");
|
confPathSettings.beginGroup("Database");
|
||||||
QString confPathFile = confPathSettings.value("Location", defaultConfPath).toString();
|
QString confPathFile = confPathSettings.value("Players", defaultConfPath).toString();
|
||||||
confPathSettings.endGroup();
|
confPathSettings.endGroup();
|
||||||
|
|
||||||
profileDB = new QSettings(confPathFile, QSettings::IniFormat);
|
profileDB = new QSettings(confPathFile, QSettings::IniFormat);
|
||||||
|
|
Loading…
Reference in a new issue