aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
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 a15f676..6bf6e63 100644
--- a/linden/indra/newview/hippogridmanager.cpp
+++ b/linden/indra/newview/hippogridmanager.cpp
@@ -806,7 +806,17 @@ void HippoGridManager::loadFromFile()
806 parseFile(gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "default_grids.xml"), !mGridInfo.empty()); 806 parseFile(gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "default_grids.xml"), !mGridInfo.empty());
807 // merge grid info from web site, if newer. Force load, if list of grids is empty. 807 // merge grid info from web site, if newer. Force load, if list of grids is empty.
808 if (gSavedSettings.getBOOL("CheckForGridUpdates")) 808 if (gSavedSettings.getBOOL("CheckForGridUpdates"))
809 parseUrl(gSavedSettings.getString("GridUpdateList"), !mGridInfo.empty()); 809 {
810 std::string update_list = gSavedSettings.getString("GridUpdateList");
811 if (!update_list.empty())
812 {
813 parseUrl(update_list, !mGridInfo.empty());
814 }
815 else
816 {
817 llwarns << "\"CheckForGridUpdates\" is set to true, but \"GridUpdateList\" contains no URL to fetch the grid info from. Skipping." << llendl;
818 }
819 }
810 820
811 std::string last_grid = gSavedSettings.getString("LastSelectedGrid"); 821 std::string last_grid = gSavedSettings.getString("LastSelectedGrid");
812 if (last_grid.empty()) last_grid = gSavedSettings.getString("DefaultGrid"); 822 if (last_grid.empty()) last_grid = gSavedSettings.getString("DefaultGrid");