From 4b67d2845dbdf08bcf2c83ea0b22a9c3be5a6c32 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 13 Apr 2016 20:36:34 +0200 Subject: [PATCH] replace hardcoded mkdir with mkpath --- CrewDatabase.cpp | 2 +- ProfileDatabase.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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";