diff options
author | McCabe Maxsted | 2010-11-05 17:32:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-11-05 17:33:50 -0700 |
commit | fcaa1ae46884524c2e01af55804754b28544acfb (patch) | |
tree | be5628253bf3c3ab8f60a7e2f0ac2ecb412d38b6 | |
parent | Fixed option in Prefs > General overlapping (all this layout still needs to b... (diff) | |
download | meta-impy-fcaa1ae46884524c2e01af55804754b28544acfb.zip meta-impy-fcaa1ae46884524c2e01af55804754b28544acfb.tar.gz meta-impy-fcaa1ae46884524c2e01af55804754b28544acfb.tar.bz2 meta-impy-fcaa1ae46884524c2e01af55804754b28544acfb.tar.xz |
Changed nickname highlight nick settings from 'nick#' to 'HighlightNickname#' to match the rest of settings.xml. Nicknames set before this commit will need to be set again due to the new preferences name
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 6 | ||||
-rw-r--r-- | linden/indra/newview/llprefscolors.cpp | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index ccee513..22e4aa5 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -6,7 +6,7 @@ | |||
6 | 6 | ||
7 | <!-- begin name highlighting --> | 7 | <!-- begin name highlighting --> |
8 | 8 | ||
9 | <key>nick01</key> | 9 | <key>HighlightNickname01</key> |
10 | <map> | 10 | <map> |
11 | <key>Comment</key> | 11 | <key>Comment</key> |
12 | <string>First Nickname for Chat Highlight</string> | 12 | <string>First Nickname for Chat Highlight</string> |
@@ -17,7 +17,7 @@ | |||
17 | <key>Value</key> | 17 | <key>Value</key> |
18 | <string></string> | 18 | <string></string> |
19 | </map> | 19 | </map> |
20 | <key>nick02</key> | 20 | <key>HighlightNickname02</key> |
21 | <map> | 21 | <map> |
22 | <key>Comment</key> | 22 | <key>Comment</key> |
23 | <string>Second Nickname for Chat Highlight</string> | 23 | <string>Second Nickname for Chat Highlight</string> |
@@ -28,7 +28,7 @@ | |||
28 | <key>Value</key> | 28 | <key>Value</key> |
29 | <string></string> | 29 | <string></string> |
30 | </map> | 30 | </map> |
31 | <key>nick03</key> | 31 | <key>HighlightNickname03</key> |
32 | <map> | 32 | <map> |
33 | <key>Comment</key> | 33 | <key>Comment</key> |
34 | <string>Third Nickname for Chat Highlight</string> | 34 | <string>Third Nickname for Chat Highlight</string> |
diff --git a/linden/indra/newview/llprefscolors.cpp b/linden/indra/newview/llprefscolors.cpp index 9a30fcd..36e98a4 100644 --- a/linden/indra/newview/llprefscolors.cpp +++ b/linden/indra/newview/llprefscolors.cpp | |||
@@ -71,9 +71,9 @@ BOOL LLPrefsColors::postBuild() | |||
71 | updateSelfCheck(); | 71 | updateSelfCheck(); |
72 | updateFriendsCheck(); | 72 | updateFriendsCheck(); |
73 | 73 | ||
74 | childSetValue("nick01", gSavedSettings.getString("nick01")); | 74 | childSetValue("nick01", gSavedSettings.getString("HighlightNickname01")); |
75 | childSetValue("nick02", gSavedSettings.getString("nick02")); | 75 | childSetValue("nick02", gSavedSettings.getString("HighlightNickname02")); |
76 | childSetValue("nick03", gSavedSettings.getString("nick03")); | 76 | childSetValue("nick03", gSavedSettings.getString("HighlightNickname03")); |
77 | 77 | ||
78 | childSetCommitCallback("HighlightOwnNameInIM", onCommitCheckSelfName, this); | 78 | childSetCommitCallback("HighlightOwnNameInIM", onCommitCheckSelfName, this); |
79 | childSetCommitCallback("HighlightOwnNameInChat", onCommitCheckSelfName, this); | 79 | childSetCommitCallback("HighlightOwnNameInChat", onCommitCheckSelfName, this); |
@@ -166,15 +166,15 @@ void LLPrefsColors::apply() | |||
166 | 166 | ||
167 | std::string nick01 = childGetValue("nick01"); | 167 | std::string nick01 = childGetValue("nick01"); |
168 | boost::trim(nick01); | 168 | boost::trim(nick01); |
169 | gSavedSettings.setString("nick01", nick01); | 169 | gSavedSettings.setString("HighlightNickname01", nick01); |
170 | 170 | ||
171 | std::string nick02 = childGetValue("nick02"); | 171 | std::string nick02 = childGetValue("nick02"); |
172 | boost::trim(nick02); | 172 | boost::trim(nick02); |
173 | gSavedSettings.setString("nick02", nick02); | 173 | gSavedSettings.setString("HighlightNickname02", nick02); |
174 | 174 | ||
175 | std::string nick03 = childGetValue("nick03"); | 175 | std::string nick03 = childGetValue("nick03"); |
176 | boost::trim(nick03); | 176 | boost::trim(nick03); |
177 | gSavedSettings.setString("nick03", nick03); | 177 | gSavedSettings.setString("HighlightNickname03", nick03); |
178 | 178 | ||
179 | refreshColors(); // member values become the official values and cancel becomes a no-op. | 179 | refreshColors(); // member values become the official values and cancel becomes a no-op. |
180 | } | 180 | } |