1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Fixed the osgearth cache only configuration

osgEarth enables it even if OSGEARTH_CACHE_ONLY is set to false
it's necessary to unset it instead
This commit is contained in:
Dmytro Poplavskiy 2012-09-23 19:13:05 +10:00
parent 6174fa2d7f
commit 28f028064a

View File

@ -52,8 +52,10 @@ void PfdQmlGadget::loadConfiguration(IUAVGadgetConfiguration* config)
if (m->cacheOnly()) {
qputenv("OSGEARTH_CACHE_ONLY", "true");
} else {
//how portable it is?
//unsetenv("OSGEARTH_CACHE_ONLY");
qputenv("OSGEARTH_CACHE_ONLY", "false");
#ifdef Q_OS_WIN32
qputenv("OSGEARTH_CACHE_ONLY", "");
#else
unsetenv("OSGEARTH_CACHE_ONLY");
#endif
}
}