aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
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");