aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsadvanced.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2010-08-01 15:57:53 -0500
committerJacek Antonelli2010-08-01 15:57:53 -0500
commitff0e1296129a67be8d4a2c00dcc6a9ac537b2894 (patch)
tree036d552513db8d8f1171d340d2105600d960c9f9 /linden/indra/newview/llprefsadvanced.cpp
parentRevamped the LightShare option in Preferences > Advanced. (diff)
downloadmeta-impy-ff0e1296129a67be8d4a2c00dcc6a9ac537b2894.zip
meta-impy-ff0e1296129a67be8d4a2c00dcc6a9ac537b2894.tar.gz
meta-impy-ff0e1296129a67be8d4a2c00dcc6a9ac537b2894.tar.bz2
meta-impy-ff0e1296129a67be8d4a2c00dcc6a9ac537b2894.tar.xz
Made the LightShare preference behave like the other preferences.
i.e. it only goes into effect if you press Apply/OK.
Diffstat (limited to 'linden/indra/newview/llprefsadvanced.cpp')
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index 675a87f..7830c29 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -65,6 +65,8 @@ BOOL LLPrefsAdvanced::postBuild()
65 childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate")); 65 childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate"));
66 childSetValue("legacy_pie_menu_checkbox", gSavedSettings.getBOOL("LegacyPieEnabled")); 66 childSetValue("legacy_pie_menu_checkbox", gSavedSettings.getBOOL("LegacyPieEnabled"));
67 childSetValue("language_is_public", gSavedSettings.getBOOL("LanguageIsPublic")); 67 childSetValue("language_is_public", gSavedSettings.getBOOL("LanguageIsPublic"));
68 childSetValue("lightshare_combo",
69 LLSD((S32)gSavedSettings.getU32("LightShareAllowed")));
68 70
69 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox"); 71 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox");
70 crash_behavior_combobox->setCurrentByIndex(gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING)); 72 crash_behavior_combobox->setCurrentByIndex(gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING));
@@ -84,6 +86,9 @@ void LLPrefsAdvanced::apply()
84 gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval_spinner").asReal()); 86 gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval_spinner").asReal());
85 gSavedSettings.setBOOL("AppearanceAnimate", childGetValue("appearance_anim_check")); 87 gSavedSettings.setBOOL("AppearanceAnimate", childGetValue("appearance_anim_check"));
86 gSavedSettings.setBOOL("LanguageIsPublic", childGetValue("language_is_public")); 88 gSavedSettings.setBOOL("LanguageIsPublic", childGetValue("language_is_public"));
89 gSavedSettings.setU32("LightShareAllowed",
90 (U32)childGetValue("lightshare_combo").asInteger());
91
87 92
88 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC 93 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC
89 if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check")) 94 if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check"))