Browse Source

Hopefully fixes crash Lorenz is seeing.

QGC4.4
dogmaphobic 9 years ago
parent
commit
884ca55de4
  1. 6
      src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp

6
src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp

@ -226,13 +226,9 @@ QGeoTiledMappingManagerEngineQGC::_setCache(const QVariantMap &parameters)
QGeoTileCache* pTileCache = createTileCacheWithDir(cacheDir); QGeoTileCache* pTileCache = createTileCacheWithDir(cacheDir);
if(pTileCache) 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. // values smaller than that and I could not find a way to make it NOT cache.
#ifdef Q_OS_WIN
pTileCache->setMaxDiskUsage(1024 * 100); pTileCache->setMaxDiskUsage(1024 * 100);
#else
pTileCache->setMaxDiskUsage(1024);
#endif
pTileCache->setMaxMemoryUsage(memLimit); pTileCache->setMaxMemoryUsage(memLimit);
} }
} }

Loading…
Cancel
Save