replace hardcoded mkdir with mkpath
This commit is contained in:
parent
1d99ce1b4a
commit
4b67d2845d
2 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue