replace hardcoded mkdir with mkpath

This commit is contained in:
Rafael 2016-04-13 20:36:34 +02:00
parent 1d99ce1b4a
commit 4b67d2845d
2 changed files with 2 additions and 2 deletions

View file

@ -24,8 +24,8 @@
CrewDatabase::CrewDatabase(QObject *parent) : QObject(parent) CrewDatabase::CrewDatabase(QObject *parent) : QObject(parent)
{ {
QDir dir; QDir dir;
dir.mkpath(StandardPaths::dataLocation());
dir.setPath(StandardPaths::dataLocation()); dir.setPath(StandardPaths::dataLocation());
dir.mkdir("../gta5sync");
QString dirPath = dir.absolutePath(); QString dirPath = dir.absolutePath();
QString defaultConfPath = dirPath + QDir::separator() + "crews.ini"; QString defaultConfPath = dirPath + QDir::separator() + "crews.ini";

View file

@ -24,8 +24,8 @@
ProfileDatabase::ProfileDatabase(QObject *parent) : QObject(parent) ProfileDatabase::ProfileDatabase(QObject *parent) : QObject(parent)
{ {
QDir dir; QDir dir;
dir.mkpath(StandardPaths::dataLocation());
dir.setPath(StandardPaths::dataLocation()); dir.setPath(StandardPaths::dataLocation());
dir.mkdir("../gta5sync");
QString dirPath = dir.absolutePath(); QString dirPath = dir.absolutePath();
QString defaultConfPath = dirPath + QDir::separator() + "players.ini"; QString defaultConfPath = dirPath + QDir::separator() + "players.ini";