From 49ccb508a08715bd93d0910c81172a670b7d719f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 4 Nov 2018 01:04:47 +0100 Subject: [PATCH] Fixed broken tiles dir program path --- src/common/programpaths.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/common/programpaths.cpp b/src/common/programpaths.cpp index 36825483..88dbd40c 100644 --- a/src/common/programpaths.cpp +++ b/src/common/programpaths.cpp @@ -75,7 +75,7 @@ QString ProgramPaths::csvDir(bool writable) QString ProgramPaths::tilesDir() { - return dir(TILES_DIR); + return dir(TILES_DIR, true); } QString ProgramPaths::translationsDir() @@ -108,8 +108,8 @@ QString ProgramPaths::mapDir(bool writable) return QDir(QStandardPaths::writableLocation( QStandardPaths::AppDataLocation)).filePath(MAP_DIR); else - return QString(QStandardPaths::locate(QStandardPaths::AppDataLocation, - MAP_DIR, QStandardPaths::LocateDirectory)); + return QStandardPaths::locate(QStandardPaths::AppDataLocation, + MAP_DIR, QStandardPaths::LocateDirectory); } QString ProgramPaths::poiDir(bool writable) @@ -118,8 +118,8 @@ QString ProgramPaths::poiDir(bool writable) return QDir(QStandardPaths::writableLocation( QStandardPaths::AppDataLocation)).filePath(POI_DIR); else - return QString(QStandardPaths::locate(QStandardPaths::AppDataLocation, - POI_DIR, QStandardPaths::LocateDirectory)); + return QStandardPaths::locate(QStandardPaths::AppDataLocation, + POI_DIR, QStandardPaths::LocateDirectory); } QString ProgramPaths::csvDir(bool writable) @@ -128,20 +128,20 @@ QString ProgramPaths::csvDir(bool writable) return QDir(QStandardPaths::writableLocation( QStandardPaths::AppDataLocation)).filePath(CSV_DIR); else - return QString(QStandardPaths::locate(QStandardPaths::AppDataLocation, - CSV_DIR, QStandardPaths::LocateDirectory)); + return QStandardPaths::locate(QStandardPaths::AppDataLocation, + CSV_DIR, QStandardPaths::LocateDirectory); } QString ProgramPaths::tilesDir() { - return QString(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, - TILES_DIR, QStandardPaths::LocateDirectory)); + return QDir(QStandardPaths::writableLocation( + QStandardPaths::AppLocalDataLocation)).filePath(TILES_DIR); } QString ProgramPaths::translationsDir() { - return QString(QStandardPaths::locate(QStandardPaths::AppDataLocation, - TRANSLATIONS_DIR, QStandardPaths::LocateDirectory)); + return QStandardPaths::locate(QStandardPaths::AppDataLocation, + TRANSLATIONS_DIR, QStandardPaths::LocateDirectory); } QString ProgramPaths::ellipsoidsFile()