diff options
author | McCabe Maxsted | 2009-11-08 19:15:49 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-11-08 19:15:49 -0700 |
commit | 6e5592cb1cac05f942462f2b9bf38a11b7440c8a (patch) | |
tree | 0c5991f3e13b511efb97bebf00b4964a593c1823 /linden/indra/newview/llpanellogin.cpp | |
parent | Finally packaged up Mac libraries. (diff) | |
download | meta-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/llpanellogin.cpp')
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index 629437d..1a17b20 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -728,7 +728,9 @@ void LLPanelLogin::addServer(const std::string& server) | |||
728 | } | 728 | } |
729 | else | 729 | else |
730 | { | 730 | { |
731 | grids->setSimple(defaultGrid); | 731 | std::string last_grid = gSavedSettings.getString("LastSelectedGrid"); |
732 | if (last_grid.empty()) last_grid = defaultGrid; | ||
733 | grids->setSimple(last_grid); | ||
732 | } | 734 | } |
733 | 735 | ||
734 | //LLComboBox* combo = sInstance->getChild<LLComboBox>("server_combo"); | 736 | //LLComboBox* combo = sInstance->getChild<LLComboBox>("server_combo"); |
@@ -1185,6 +1187,9 @@ void LLPanelLogin::onSelectServer(LLUICtrl* ctrl, void*) | |||
1185 | 1187 | ||
1186 | // grid changed so show new splash screen (possibly) | 1188 | // grid changed so show new splash screen (possibly) |
1187 | loadLoginPage(); | 1189 | loadLoginPage(); |
1190 | |||
1191 | // save grid choice to settings | ||
1192 | gSavedSettings.setString("LastSelectedGrid", mCurGrid); | ||
1188 | } | 1193 | } |
1189 | /* | 1194 | /* |
1190 | void LLPanelLogin::onServerComboLostFocus(LLFocusableElement* fe, void*) | 1195 | void LLPanelLogin::onServerComboLostFocus(LLFocusableElement* fe, void*) |