diff --git a/CrewDatabase.cpp b/CrewDatabase.cpp index 14fbdda..ddedaab 100755 --- a/CrewDatabase.cpp +++ b/CrewDatabase.cpp @@ -24,8 +24,8 @@ CrewDatabase::CrewDatabase(QObject *parent) : QObject(parent) { QDir dir; + dir.mkpath(StandardPaths::dataLocation()); dir.setPath(StandardPaths::dataLocation()); - dir.mkdir("../gta5sync"); QString dirPath = dir.absolutePath(); QString defaultConfPath = dirPath + QDir::separator() + "crews.ini"; diff --git a/ProfileDatabase.cpp b/ProfileDatabase.cpp index 24ab877..fb25a65 100755 --- a/ProfileDatabase.cpp +++ b/ProfileDatabase.cpp @@ -24,8 +24,8 @@ ProfileDatabase::ProfileDatabase(QObject *parent) : QObject(parent) { QDir dir; + dir.mkpath(StandardPaths::dataLocation()); dir.setPath(StandardPaths::dataLocation()); - dir.mkdir("../gta5sync"); QString dirPath = dir.absolutePath(); QString defaultConfPath = dirPath + QDir::separator() + "players.ini";