summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/nokia
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-09-14 12:15:17 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-09-15 14:44:40 +0000
commita99b8ced41b2c634598ce70fe69036a0ed34e9ba (patch)
treeaf55c8822257652f1334fc28403b35c77dcc4d3e /src/plugins/geoservices/nokia
parentd1964046bc55e5b4d99a509c6329f549c47d3f77 (diff)
downloadqtlocation-a99b8ced41b2c634598ce70fe69036a0ed34e9ba.tar.gz
Isolate the default cache directory
Instead of having it in several random places, have a central function that contains all the cache directory selection logic. As per QtCore docs GenericCacheLocation can be empty so introduce a fallback to CacheLocation (the app-specific, non-shared location) in case some future platform does not support the former. Task-number: QTBUG-41187 Change-Id: Icfe5e8926e917483ac11844f625244318ff815c7 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/plugins/geoservices/nokia')
-rw-r--r--src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp b/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp
index 54bf29af..1b1163a6 100644
--- a/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp
+++ b/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp
@@ -106,8 +106,7 @@ QGeoTiledMappingManagerEngineNokia::QGeoTiledMappingManagerEngineNokia(
cacheDir = parameters.value(QStringLiteral("here.mapping.cache.directory")).toString();
} else {
// managerName() is not yet set, we have to hardcode the plugin name below
- cacheDir = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation)
- + QLatin1String("/QtLocation/here");
+ cacheDir = QGeoTileCache::baseCacheDirectory() + QLatin1String("here");
}
QGeoTileCache *tileCache = createTileCacheWithDir(cacheDir);