From 28f028064a22d6bf87d2f75ed5be2c3eaafbaddd Mon Sep 17 00:00:00 2001 From: Dmytro Poplavskiy Date: Sun, 23 Sep 2012 19:13:05 +1000 Subject: [PATCH] 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 --- ground/openpilotgcs/src/plugins/pfdqml/pfdqmlgadget.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/pfdqml/pfdqmlgadget.cpp b/ground/openpilotgcs/src/plugins/pfdqml/pfdqmlgadget.cpp index 7fa9be6a5..770cc9744 100644 --- a/ground/openpilotgcs/src/plugins/pfdqml/pfdqmlgadget.cpp +++ b/ground/openpilotgcs/src/plugins/pfdqml/pfdqmlgadget.cpp @@ -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 } }