mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-01 07:01:16 +01:00
Fixed Qt 4 cache paths
This commit is contained in:
parent
a299207e5d
commit
09242841e3
@ -77,12 +77,13 @@ QString ProgramPaths::tilesDir()
|
|||||||
{
|
{
|
||||||
#if defined(Q_OS_WIN32)
|
#if defined(Q_OS_WIN32)
|
||||||
return QDir::homePath() + QString("/AppData/Local/")
|
return QDir::homePath() + QString("/AppData/Local/")
|
||||||
+ qApp->applicationName() + QString("/cache");
|
+ qApp->applicationName() + QString("/cache/") + QString(TILES_DIR);
|
||||||
#elif defined(Q_OS_MAC)
|
#elif defined(Q_OS_MAC)
|
||||||
return QDir::homePath() + QString("/Library/Caches/")
|
return QDir::homePath() + QString("/Library/Caches/")
|
||||||
+ qApp->applicationName();
|
+ qApp->applicationName() + QString("/" TILES_DIR);
|
||||||
#else
|
#else
|
||||||
return QDir::homePath() + QString("/.cache/") + qApp->applicationName();
|
return QDir::homePath() + QString("/.cache/") + qApp->applicationName()
|
||||||
|
+ QString("/" TILES_DIR);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user