From 82fcf65316fa6cff2c1dfbdd22d454ba06f69aed Mon Sep 17 00:00:00 2001 From: barthess Date: Sat, 15 Sep 2012 18:53:17 +0300 Subject: [PATCH] mapscache moved to user`s home directory to prevent polition of filesystem root --- libs/opmapcontrol/src/core/cache.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/opmapcontrol/src/core/cache.cpp b/libs/opmapcontrol/src/core/cache.cpp index eb910b56a..712efafbd 100644 --- a/libs/opmapcontrol/src/core/cache.cpp +++ b/libs/opmapcontrol/src/core/cache.cpp @@ -41,9 +41,9 @@ namespace core { void Cache::setCacheLocation(const QString& value) { cache=value; - routeCache = cache + "RouteCache" + QDir::separator(); - geoCache = cache + "GeocoderCache"+ QDir::separator(); - placemarkCache = cache + "PlacemarkCache" + QDir::separator(); + routeCache = cache + "RouteCache/"; + geoCache = cache + "GeocoderCache/"; + placemarkCache = cache + "PlacemarkCache/"; ImageCache.setGtileCache(value); } QString Cache::CacheLocation() @@ -54,7 +54,7 @@ namespace core { { if(cache.isNull()|cache.isEmpty()) { - cache= Utils::PathUtils().GetStoragePath()+"mapscache"+QDir::separator(); + cache = QDir::homePath() + "/mapscache/"; setCacheLocation(cache); } } -- 2.22.0