Commit bb458314 authored by Gus Grubba's avatar Gus Grubba

Merge pull request #2852 from dogmaphobic/mapCrash

Hopefully fixes crash Lorenz is seeing.
parents 7e3be8f7 884ca55d
......@@ -226,13 +226,9 @@ QGeoTiledMappingManagerEngineQGC::_setCache(const QVariantMap &parameters)
QGeoTileCache* pTileCache = createTileCacheWithDir(cacheDir);
if(pTileCache)
{
//-- We're basically telling it to use 1kb (100k for Windows) of disk for cache. It doesn't like
//-- We're basically telling it to use 100k of disk for cache. It doesn't like
// values smaller than that and I could not find a way to make it NOT cache.
#ifdef Q_OS_WIN
pTileCache->setMaxDiskUsage(1024 * 100);
#else
pTileCache->setMaxDiskUsage(1024);
#endif
pTileCache->setMaxMemoryUsage(memLimit);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment