aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-07-01 02:44:44 -0700
committerMcCabe Maxsted2011-07-01 02:45:10 -0700
commit95ecfad58275879ebf8d803f89f17cf34790c1cc (patch)
tree8547f4c05d5c765e3a436c66144f8f6906fd63a3 /linden/indra/newview/llappviewer.cpp
parentFixed #994: double click action combobox not enabling (diff)
downloadmeta-impy-95ecfad58275879ebf8d803f89f17cf34790c1cc.zip
meta-impy-95ecfad58275879ebf8d803f89f17cf34790c1cc.tar.gz
meta-impy-95ecfad58275879ebf8d803f89f17cf34790c1cc.tar.bz2
meta-impy-95ecfad58275879ebf8d803f89f17cf34790c1cc.tar.xz
Fixed #742: cache reset to default button doesn't work (introduced in 7507619e)
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llappviewer.cpp4
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", "");