aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/hippoGridManager.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-11-08 19:15:49 -0700
committerMcCabe Maxsted2009-11-08 19:15:49 -0700
commit6e5592cb1cac05f942462f2b9bf38a11b7440c8a (patch)
tree0c5991f3e13b511efb97bebf00b4964a593c1823 /linden/indra/newview/hippoGridManager.cpp
parentFinally packaged up Mac libraries. (diff)
downloadmeta-impy-6e5592cb1cac05f942462f2b9bf38a11b7440c8a.zip
meta-impy-6e5592cb1cac05f942462f2b9bf38a11b7440c8a.tar.gz
meta-impy-6e5592cb1cac05f942462f2b9bf38a11b7440c8a.tar.bz2
meta-impy-6e5592cb1cac05f942462f2b9bf38a11b7440c8a.tar.xz
Remember the last logged in grid between sessions
Diffstat (limited to 'linden/indra/newview/hippoGridManager.cpp')
-rw-r--r--linden/indra/newview/hippoGridManager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/newview/hippoGridManager.cpp b/linden/indra/newview/hippoGridManager.cpp
index 71e3a95..9ff2d39 100644
--- a/linden/indra/newview/hippoGridManager.cpp
+++ b/linden/indra/newview/hippoGridManager.cpp
@@ -670,8 +670,10 @@ void HippoGridManager::loadFromFile()
670 if (gSavedSettings.getBOOL("CheckForGridUpdates")) 670 if (gSavedSettings.getBOOL("CheckForGridUpdates"))
671 parseUrl("http://imprudenceviewer.org/app/grids/", !mGridInfo.empty()); 671 parseUrl("http://imprudenceviewer.org/app/grids/", !mGridInfo.empty());
672 672
673 setDefaultGrid(gSavedSettings.getString("DefaultGrid")); 673 std::string last_grid = gSavedSettings.getString("LastSelectedGrid");
674 setCurrentGrid(gSavedSettings.getString("DefaultGrid")); 674 if (last_grid.empty()) last_grid = gSavedSettings.getString("DefaultGrid");
675 setDefaultGrid(last_grid);
676 setCurrentGrid(last_grid);
675} 677}
676 678
677 679