mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
Fixed broken tiles dir program path
This commit is contained in:
parent
9c6c574443
commit
49ccb508a0
@ -75,7 +75,7 @@ QString ProgramPaths::csvDir(bool writable)
|
|||||||
|
|
||||||
QString ProgramPaths::tilesDir()
|
QString ProgramPaths::tilesDir()
|
||||||
{
|
{
|
||||||
return dir(TILES_DIR);
|
return dir(TILES_DIR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ProgramPaths::translationsDir()
|
QString ProgramPaths::translationsDir()
|
||||||
@ -108,8 +108,8 @@ QString ProgramPaths::mapDir(bool writable)
|
|||||||
return QDir(QStandardPaths::writableLocation(
|
return QDir(QStandardPaths::writableLocation(
|
||||||
QStandardPaths::AppDataLocation)).filePath(MAP_DIR);
|
QStandardPaths::AppDataLocation)).filePath(MAP_DIR);
|
||||||
else
|
else
|
||||||
return QString(QStandardPaths::locate(QStandardPaths::AppDataLocation,
|
return QStandardPaths::locate(QStandardPaths::AppDataLocation,
|
||||||
MAP_DIR, QStandardPaths::LocateDirectory));
|
MAP_DIR, QStandardPaths::LocateDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ProgramPaths::poiDir(bool writable)
|
QString ProgramPaths::poiDir(bool writable)
|
||||||
@ -118,8 +118,8 @@ QString ProgramPaths::poiDir(bool writable)
|
|||||||
return QDir(QStandardPaths::writableLocation(
|
return QDir(QStandardPaths::writableLocation(
|
||||||
QStandardPaths::AppDataLocation)).filePath(POI_DIR);
|
QStandardPaths::AppDataLocation)).filePath(POI_DIR);
|
||||||
else
|
else
|
||||||
return QString(QStandardPaths::locate(QStandardPaths::AppDataLocation,
|
return QStandardPaths::locate(QStandardPaths::AppDataLocation,
|
||||||
POI_DIR, QStandardPaths::LocateDirectory));
|
POI_DIR, QStandardPaths::LocateDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ProgramPaths::csvDir(bool writable)
|
QString ProgramPaths::csvDir(bool writable)
|
||||||
@ -128,20 +128,20 @@ QString ProgramPaths::csvDir(bool writable)
|
|||||||
return QDir(QStandardPaths::writableLocation(
|
return QDir(QStandardPaths::writableLocation(
|
||||||
QStandardPaths::AppDataLocation)).filePath(CSV_DIR);
|
QStandardPaths::AppDataLocation)).filePath(CSV_DIR);
|
||||||
else
|
else
|
||||||
return QString(QStandardPaths::locate(QStandardPaths::AppDataLocation,
|
return QStandardPaths::locate(QStandardPaths::AppDataLocation,
|
||||||
CSV_DIR, QStandardPaths::LocateDirectory));
|
CSV_DIR, QStandardPaths::LocateDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ProgramPaths::tilesDir()
|
QString ProgramPaths::tilesDir()
|
||||||
{
|
{
|
||||||
return QString(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation,
|
return QDir(QStandardPaths::writableLocation(
|
||||||
TILES_DIR, QStandardPaths::LocateDirectory));
|
QStandardPaths::AppLocalDataLocation)).filePath(TILES_DIR);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ProgramPaths::translationsDir()
|
QString ProgramPaths::translationsDir()
|
||||||
{
|
{
|
||||||
return QString(QStandardPaths::locate(QStandardPaths::AppDataLocation,
|
return QStandardPaths::locate(QStandardPaths::AppDataLocation,
|
||||||
TRANSLATIONS_DIR, QStandardPaths::LocateDirectory));
|
TRANSLATIONS_DIR, QStandardPaths::LocateDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ProgramPaths::ellipsoidsFile()
|
QString ProgramPaths::ellipsoidsFile()
|
||||||
|
Loading…
Reference in New Issue
Block a user