Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
bb458314
Commit
bb458314
authored
Feb 19, 2016
by
Gus Grubba
Browse files
Merge pull request #2852 from dogmaphobic/mapCrash
Hopefully fixes crash Lorenz is seeing.
parents
7e3be8f7
884ca55d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp
View file @
bb458314
...
...
@@ -226,13 +226,9 @@ QGeoTiledMappingManagerEngineQGC::_setCache(const QVariantMap ¶meters)
QGeoTileCache
*
pTileCache
=
createTileCacheWithDir
(
cacheDir
);
if
(
pTileCache
)
{
//-- We're basically telling it to use 1
kb (100k for Windows)
of disk for cache. It doesn't like
//-- We're basically telling it to use 1
00k
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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment