diff options
author | Jacek Antonelli | 2009-11-08 20:41:49 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-11-08 20:41:49 -0600 |
commit | 40c7f215ae22d31105547c7c90f53c93c125fca0 (patch) | |
tree | 03269e51df37af562ae9bb882f18d55b763bdc31 /linden | |
parent | Removed Advanced Water and Sky tabs from Windlight toolbar presets. (diff) | |
parent | Fixed Sunset being mislabeled as Midday in windlight toolbar (diff) | |
download | meta-impy-40c7f215ae22d31105547c7c90f53c93c125fca0.zip meta-impy-40c7f215ae22d31105547c7c90f53c93c125fca0.tar.gz meta-impy-40c7f215ae22d31105547c7c90f53c93c125fca0.tar.bz2 meta-impy-40c7f215ae22d31105547c7c90f53c93c125fca0.tar.xz |
Merge remote branch 'mccabe/next' into next
Diffstat (limited to 'linden')
5 files changed, 25 insertions, 8 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 53d84dc..f3508e0 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -4581,7 +4581,17 @@ | |||
4581 | <key>Value</key> | 4581 | <key>Value</key> |
4582 | <string>0.0.0</string> | 4582 | <string>0.0.0</string> |
4583 | </map> | 4583 | </map> |
4584 | 4584 | <key>LastSelectedGrid</key> | |
4585 | <map> | ||
4586 | <key>Comment</key> | ||
4587 | <string>Last grid selected from the grid pulldown</string> | ||
4588 | <key>Persist</key> | ||
4589 | <integer>1</integer> | ||
4590 | <key>Type</key> | ||
4591 | <string>String</string> | ||
4592 | <key>Value</key> | ||
4593 | <string /> | ||
4594 | </map> | ||
4585 | <key>LastSnapshotToEmailHeight</key> | 4595 | <key>LastSnapshotToEmailHeight</key> |
4586 | <map> | 4596 | <map> |
4587 | <key>Comment</key> | 4597 | <key>Comment</key> |
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 | ||
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*) |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_windlight_remote.xml b/linden/indra/newview/skins/default/xui/en-us/panel_windlight_remote.xml index 8be72fc..e9f2bfd 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_windlight_remote.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_windlight_remote.xml | |||
@@ -20,10 +20,10 @@ | |||
20 | Sunrise | 20 | Sunrise |
21 | </string> | 21 | </string> |
22 | <string name="sunset"> | 22 | <string name="sunset"> |
23 | Midday | 23 | Sunset |
24 | </string> | 24 | </string> |
25 | <string name="noon"> | 25 | <string name="noon"> |
26 | Noon | 26 | Midday |
27 | </string> | 27 | </string> |
28 | <string name="midnight"> | 28 | <string name="midnight"> |
29 | Midnight | 29 | Midnight |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_windlight_remote_expanded.xml b/linden/indra/newview/skins/default/xui/en-us/panel_windlight_remote_expanded.xml index 4cb49a3..347e913 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_windlight_remote_expanded.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_windlight_remote_expanded.xml | |||
@@ -38,10 +38,10 @@ | |||
38 | Sunrise | 38 | Sunrise |
39 | </string> | 39 | </string> |
40 | <string name="sunset"> | 40 | <string name="sunset"> |
41 | Midday | 41 | Sunset |
42 | </string> | 42 | </string> |
43 | <string name="noon"> | 43 | <string name="noon"> |
44 | Noon | 44 | Midday |
45 | </string> | 45 | </string> |
46 | <string name="midnight"> | 46 | <string name="midnight"> |
47 | Midnight | 47 | Midnight |