aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/hippogridmanager.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2011-03-22 11:39:09 +0100
committerArmin Weatherwax2011-03-22 15:00:02 +0100
commit5f00d4c76e952fa865dc7cbc63fd17bf6a3c0c7b (patch)
tree9a50ef5e225f2f5bf05987dcc6f10a44fd8e5b09 /linden/indra/newview/hippogridmanager.cpp
parentDon't report crashes if the grid where the crash happened is different from t... (diff)
downloadmeta-impy-5f00d4c76e952fa865dc7cbc63fd17bf6a3c0c7b.zip
meta-impy-5f00d4c76e952fa865dc7cbc63fd17bf6a3c0c7b.tar.gz
meta-impy-5f00d4c76e952fa865dc7cbc63fd17bf6a3c0c7b.tar.bz2
meta-impy-5f00d4c76e952fa865dc7cbc63fd17bf6a3c0c7b.tar.xz
Don't try to fetch grid list from empty url in GridUpdateList
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/hippogridmanager.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/newview/hippogridmanager.cpp b/linden/indra/newview/hippogridmanager.cpp
index d56214c..74c9997 100644
--- a/linden/indra/newview/hippogridmanager.cpp
+++ b/linden/indra/newview/hippogridmanager.cpp
@@ -799,7 +799,17 @@ void HippoGridManager::loadFromFile()
799 parseFile(gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "default_grids.xml"), !mGridInfo.empty()); 799 parseFile(gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "default_grids.xml"), !mGridInfo.empty());
800 // merge grid info from web site, if newer. Force load, if list of grids is empty. 800 // merge grid info from web site, if newer. Force load, if list of grids is empty.
801 if (gSavedSettings.getBOOL("CheckForGridUpdates")) 801 if (gSavedSettings.getBOOL("CheckForGridUpdates"))
802 parseUrl(gSavedSettings.getString("GridUpdateList"), !mGridInfo.empty()); 802 {
803 std::string update_list = gSavedSettings.getString("GridUpdateList");
804 if (!update_list.empty())
805 {
806 parseUrl(update_list, !mGridInfo.empty());
807 }
808 else
809 {
810 llwarns << "\"CheckForGridUpdates\" is set to true, but \"GridUpdateList\" contains no URL to fetch the grid info from. Skipping." << llendl;
811 }
812 }
803 813
804 std::string last_grid = gSavedSettings.getString("LastSelectedGrid"); 814 std::string last_grid = gSavedSettings.getString("LastSelectedGrid");
805 if (last_grid.empty()) last_grid = gSavedSettings.getString("DefaultGrid"); 815 if (last_grid.empty()) last_grid = gSavedSettings.getString("DefaultGrid");