diff options
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 2fab25b..1b32581 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -2991,7 +2991,7 @@ bool LLAppViewer::initCache() | |||
2991 | cache_location = gSavedSettings.getString("CacheLocation"); | 2991 | cache_location = gSavedSettings.getString("CacheLocation"); |
2992 | } | 2992 | } |
2993 | std::string new_cache_location = gSavedSettings.getString("NewCacheLocation"); | 2993 | std::string new_cache_location = gSavedSettings.getString("NewCacheLocation"); |
2994 | if ((new_cache_location != cache_location) && new_cache_location != "") | 2994 | if (new_cache_location != cache_location) |
2995 | { | 2995 | { |
2996 | gDirUtilp->setCacheDir(gSavedSettings.getString("CacheLocation")); | 2996 | gDirUtilp->setCacheDir(gSavedSettings.getString("CacheLocation")); |
2997 | purgeCache(); // purge old cache | 2997 | purgeCache(); // purge old cache |
@@ -2999,7 +2999,7 @@ bool LLAppViewer::initCache() | |||
2999 | cache_location = new_cache_location; | 2999 | cache_location = new_cache_location; |
3000 | } | 3000 | } |
3001 | 3001 | ||
3002 | if (!gDirUtilp->setCacheDir(cache_location)) | 3002 | if (!gDirUtilp->setCacheDir(gSavedSettings.getString("CacheLocation"))) |
3003 | { | 3003 | { |
3004 | LL_WARNS("AppCache") << "Unable to set cache location" << LL_ENDL; | 3004 | LL_WARNS("AppCache") << "Unable to set cache location" << LL_ENDL; |
3005 | gSavedSettings.setString("CacheLocation", ""); | 3005 | gSavedSettings.setString("CacheLocation", ""); |