aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llprefsim.cpp')
-rw-r--r--linden/indra/newview/llprefsim.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/newview/llprefsim.cpp b/linden/indra/newview/llprefsim.cpp
index 1af6e86..5cb14fc 100644
--- a/linden/indra/newview/llprefsim.cpp
+++ b/linden/indra/newview/llprefsim.cpp
@@ -58,7 +58,7 @@ public:
58 void cancel(); 58 void cancel();
59 void setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email); 59 void setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email);
60 void enableHistory(); 60 void enableHistory();
61 61
62 static void onClickLogPath(void* user_data); 62 static void onClickLogPath(void* user_data);
63 static void onCommitLogging(LLUICtrl* ctrl, void* user_data); 63 static void onCommitLogging(LLUICtrl* ctrl, void* user_data);
64 64
@@ -96,6 +96,7 @@ BOOL LLPrefsIMImpl::postBuild()
96 childSetLabelArg("send_im_to_email", "[EMAIL]", getString("log_in_to_change")); 96 childSetLabelArg("send_im_to_email", "[EMAIL]", getString("log_in_to_change"));
97 97
98 // Don't enable this until we get personal data 98 // Don't enable this until we get personal data
99 childDisable("include_im_in_chat_console");
99 childDisable("include_im_in_chat_history"); 100 childDisable("include_im_in_chat_history");
100 childDisable("show_timestamps_check"); 101 childDisable("show_timestamps_check");
101 childDisable("friends_online_notify_checkbox"); 102 childDisable("friends_online_notify_checkbox");
@@ -114,6 +115,7 @@ BOOL LLPrefsIMImpl::postBuild()
114 115
115 childSetText("busy_response", getString("log_in_to_change")); 116 childSetText("busy_response", getString("log_in_to_change"));
116 117
118 childSetValue("include_im_in_chat_console", gSavedSettings.getBOOL("IMInChatConsole"));
117 childSetValue("include_im_in_chat_history", gSavedSettings.getBOOL("IMInChatHistory")); 119 childSetValue("include_im_in_chat_history", gSavedSettings.getBOOL("IMInChatHistory"));
118 childSetValue("show_timestamps_check", gSavedSettings.getBOOL("IMShowTimestamps")); 120 childSetValue("show_timestamps_check", gSavedSettings.getBOOL("IMShowTimestamps"));
119 childSetValue("friends_online_notify_checkbox", gSavedSettings.getBOOL("ChatOnlineNotification")); 121 childSetValue("friends_online_notify_checkbox", gSavedSettings.getBOOL("ChatOnlineNotification"));
@@ -163,6 +165,7 @@ void LLPrefsIMImpl::apply()
163 165
164 gSavedPerAccountSettings.setString("BusyModeResponse", std::string(wstring_to_utf8str(busy_response))); 166 gSavedPerAccountSettings.setString("BusyModeResponse", std::string(wstring_to_utf8str(busy_response)));
165 167
168 gSavedSettings.setBOOL("IMInChatConsole", childGetValue("include_im_in_chat_console").asBoolean());
166 gSavedSettings.setBOOL("IMInChatHistory", childGetValue("include_im_in_chat_history").asBoolean()); 169 gSavedSettings.setBOOL("IMInChatHistory", childGetValue("include_im_in_chat_history").asBoolean());
167 gSavedSettings.setBOOL("IMShowTimestamps", childGetValue("show_timestamps_check").asBoolean()); 170 gSavedSettings.setBOOL("IMShowTimestamps", childGetValue("show_timestamps_check").asBoolean());
168 gSavedSettings.setBOOL("ChatOnlineNotification", childGetValue("friends_online_notify_checkbox").asBoolean()); 171 gSavedSettings.setBOOL("ChatOnlineNotification", childGetValue("friends_online_notify_checkbox").asBoolean());
@@ -234,6 +237,7 @@ void LLPrefsIMImpl::setPersonalInfo(const std::string& visibility, bool im_via_e
234 mOriginalHideOnlineStatus = true; 237 mOriginalHideOnlineStatus = true;
235 } 238 }
236 239
240 childEnable("include_im_in_chat_console");
237 childEnable("include_im_in_chat_history"); 241 childEnable("include_im_in_chat_history");
238 childEnable("show_timestamps_check"); 242 childEnable("show_timestamps_check");
239 childEnable("friends_online_notify_checkbox"); 243 childEnable("friends_online_notify_checkbox");
@@ -255,6 +259,12 @@ void LLPrefsIMImpl::setPersonalInfo(const std::string& visibility, bool im_via_e
255 LLWStringUtil::replaceChar(busy_response, '^', '\n'); 259 LLWStringUtil::replaceChar(busy_response, '^', '\n');
256 LLWStringUtil::replaceChar(busy_response, '%', ' '); 260 LLWStringUtil::replaceChar(busy_response, '%', ' ');
257 childSetText("busy_response", wstring_to_utf8str(busy_response)); 261 childSetText("busy_response", wstring_to_utf8str(busy_response));
262// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g)
263 if (gRlvHandler.hasBehaviour(RLV_BHVR_SENDIM))
264 {
265 childDisable("busy_response");
266 }
267// [/RLVa:KB]
258 268
259 enableHistory(); 269 enableHistory();
260 270