diff options
Diffstat (limited to 'linden/indra/newview/llprefsim.cpp')
-rw-r--r-- | linden/indra/newview/llprefsim.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/linden/indra/newview/llprefsim.cpp b/linden/indra/newview/llprefsim.cpp index 4daead0..0c06122 100644 --- a/linden/indra/newview/llprefsim.cpp +++ b/linden/indra/newview/llprefsim.cpp | |||
@@ -47,6 +47,8 @@ | |||
47 | 47 | ||
48 | #include "lldirpicker.h" | 48 | #include "lldirpicker.h" |
49 | 49 | ||
50 | #include "hippoGridManager.h" | ||
51 | |||
50 | class LLPrefsIMImpl : public LLPanel | 52 | class LLPrefsIMImpl : public LLPanel |
51 | { | 53 | { |
52 | public: | 54 | public: |
@@ -59,7 +61,7 @@ public: | |||
59 | void cancel(); | 61 | void cancel(); |
60 | void setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email); | 62 | void setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email); |
61 | void enableHistory(); | 63 | void enableHistory(); |
62 | 64 | ||
63 | static void onClickLogPath(void* user_data); | 65 | static void onClickLogPath(void* user_data); |
64 | static void onCommitLogging(LLUICtrl* ctrl, void* user_data); | 66 | static void onCommitLogging(LLUICtrl* ctrl, void* user_data); |
65 | 67 | ||
@@ -120,6 +122,7 @@ BOOL LLPrefsIMImpl::postBuild() | |||
120 | childSetValue("include_im_in_chat_history", gSavedSettings.getBOOL("IMInChatHistory")); | 122 | childSetValue("include_im_in_chat_history", gSavedSettings.getBOOL("IMInChatHistory")); |
121 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("IMShowTimestamps")); | 123 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("IMShowTimestamps")); |
122 | childSetValue("friends_online_notify_checkbox", gSavedSettings.getBOOL("ChatOnlineNotification")); | 124 | childSetValue("friends_online_notify_checkbox", gSavedSettings.getBOOL("ChatOnlineNotification")); |
125 | childSetValue("vertical-imtabs-toggle", gSavedSettings.getBOOL("VerticalIMTabs")); | ||
123 | 126 | ||
124 | childSetText("log_path_string", gSavedPerAccountSettings.getString("InstantMessageLogPath")); | 127 | childSetText("log_path_string", gSavedPerAccountSettings.getString("InstantMessageLogPath")); |
125 | childSetValue("log_instant_messages", gSavedPerAccountSettings.getBOOL("LogInstantMessages")); | 128 | childSetValue("log_instant_messages", gSavedPerAccountSettings.getBOOL("LogInstantMessages")); |
@@ -182,7 +185,7 @@ void LLPrefsIMImpl::apply() | |||
182 | 185 | ||
183 | gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); | 186 | gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); |
184 | 187 | ||
185 | gDirUtilp->setPerAccountChatLogsDir(gSavedSettings.getString("FirstName"), | 188 | gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), gSavedSettings.getString("FirstName"), |
186 | gSavedSettings.getString("LastName") ); | 189 | gSavedSettings.getString("LastName") ); |
187 | LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); | 190 | LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); |
188 | 191 | ||
@@ -215,6 +218,7 @@ void LLPrefsIMImpl::apply() | |||
215 | gAgent.sendReliableMessage(); | 218 | gAgent.sendReliableMessage(); |
216 | } | 219 | } |
217 | } | 220 | } |
221 | gSavedSettings.setBOOL("VerticalIMTabs", childGetValue("vertical-imtabs-toggle").asBoolean()); | ||
218 | } | 222 | } |
219 | 223 | ||
220 | void LLPrefsIMImpl::setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email) | 224 | void LLPrefsIMImpl::setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email) |
@@ -260,6 +264,12 @@ void LLPrefsIMImpl::setPersonalInfo(const std::string& visibility, bool im_via_e | |||
260 | LLWStringUtil::replaceChar(busy_response, '^', '\n'); | 264 | LLWStringUtil::replaceChar(busy_response, '^', '\n'); |
261 | LLWStringUtil::replaceChar(busy_response, '%', ' '); | 265 | LLWStringUtil::replaceChar(busy_response, '%', ' '); |
262 | childSetText("busy_response", wstring_to_utf8str(busy_response)); | 266 | childSetText("busy_response", wstring_to_utf8str(busy_response)); |
267 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
268 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SENDIM)) | ||
269 | { | ||
270 | childDisable("busy_response"); | ||
271 | } | ||
272 | // [/RLVa:KB] | ||
263 | 273 | ||
264 | enableHistory(); | 274 | enableHistory(); |
265 | 275 | ||