diff options
author | McCabe Maxsted | 2010-08-04 03:14:59 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-08-07 06:22:51 -0700 |
commit | 9af99fdd53d38727def5e42fd2cc93af1146d8cf (patch) | |
tree | 2f9c33ead4099c9471692252635816c3c159bbae /linden/indra/newview/floaterbusy.cpp | |
parent | Don't list clients as 'Failure' as it confuses people and isn't very nice (diff) | |
download | meta-impy-9af99fdd53d38727def5e42fd2cc93af1146d8cf.zip meta-impy-9af99fdd53d38727def5e42fd2cc93af1146d8cf.tar.gz meta-impy-9af99fdd53d38727def5e42fd2cc93af1146d8cf.tar.bz2 meta-impy-9af99fdd53d38727def5e42fd2cc93af1146d8cf.tar.xz |
Added menu option for toggling IM auto-responses on/off underneath the Busy option
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/floaterbusy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linden/indra/newview/floaterbusy.cpp b/linden/indra/newview/floaterbusy.cpp index 9188ae1..6c49461 100644 --- a/linden/indra/newview/floaterbusy.cpp +++ b/linden/indra/newview/floaterbusy.cpp | |||
@@ -158,6 +158,7 @@ BOOL FloaterBusy::postBuild() | |||
158 | LLWStringUtil::replaceChar(auto_response, '%', ' '); | 158 | LLWStringUtil::replaceChar(auto_response, '%', ' '); |
159 | childSetText("im_response", wstring_to_utf8str(auto_response)); | 159 | childSetText("im_response", wstring_to_utf8str(auto_response)); |
160 | 160 | ||
161 | childSetValue("InstantMessageResponseEnabled", gSavedPerAccountSettings.getBOOL("InstantMessageResponseEnabled")); | ||
161 | childSetValue("InstantMessageResponseFriends", gSavedPerAccountSettings.getBOOL("InstantMessageResponseFriends")); | 162 | childSetValue("InstantMessageResponseFriends", gSavedPerAccountSettings.getBOOL("InstantMessageResponseFriends")); |
162 | childSetValue("InstantMessageResponseMuted", gSavedPerAccountSettings.getBOOL("InstantMessageResponseMuted")); | 163 | childSetValue("InstantMessageResponseMuted", gSavedPerAccountSettings.getBOOL("InstantMessageResponseMuted")); |
163 | childSetValue("InstantMessageResponseAnyone", gSavedPerAccountSettings.getBOOL("InstantMessageResponseAnyone")); | 164 | childSetValue("InstantMessageResponseAnyone", gSavedPerAccountSettings.getBOOL("InstantMessageResponseAnyone")); |
@@ -212,6 +213,7 @@ void FloaterBusy::apply() | |||
212 | LLWStringUtil::replaceChar(im_response, '\n', '^'); | 213 | LLWStringUtil::replaceChar(im_response, '\n', '^'); |
213 | LLWStringUtil::replaceChar(im_response, ' ', '%'); | 214 | LLWStringUtil::replaceChar(im_response, ' ', '%'); |
214 | gSavedPerAccountSettings.setString("InstantMessageResponse", std::string(wstring_to_utf8str(im_response))); | 215 | gSavedPerAccountSettings.setString("InstantMessageResponse", std::string(wstring_to_utf8str(im_response))); |
216 | gSavedPerAccountSettings.setBOOL("InstantMessageResponseEnabled", childGetValue("InstantMessageResponseEnabled").asBoolean()); | ||
215 | gSavedPerAccountSettings.setBOOL("InstantMessageResponseMuted", childGetValue("InstantMessageResponseMuted").asBoolean()); | 217 | gSavedPerAccountSettings.setBOOL("InstantMessageResponseMuted", childGetValue("InstantMessageResponseMuted").asBoolean()); |
216 | gSavedPerAccountSettings.setBOOL("InstantMessageResponseFriends", childGetValue("InstantMessageResponseFriends").asBoolean()); | 218 | gSavedPerAccountSettings.setBOOL("InstantMessageResponseFriends", childGetValue("InstantMessageResponseFriends").asBoolean()); |
217 | gSavedPerAccountSettings.setBOOL("InstantMessageResponseMuted", childGetValue("InstantMessageResponseMuted").asBoolean()); | 219 | gSavedPerAccountSettings.setBOOL("InstantMessageResponseMuted", childGetValue("InstantMessageResponseMuted").asBoolean()); |