summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2010-02-01 11:00:14 -0800
committerJames Cook <james@lindenlab.com>2010-02-01 11:00:14 -0800
commite88e1022f804bd23edff73f95e5ac3cec5effcfb (patch)
tree4343bbc069ad6dae721273a54e221864b6d120a1 /indra
parent852c4acb59f6a15e3f384904ab9b237795107119 (diff)
Show SLIDs in avatar picker
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloateravatarpicker.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/indra/newview/llfloateravatarpicker.cpp b/indra/newview/llfloateravatarpicker.cpp
index a0b2de85f0..50aa70478b 100644
--- a/indra/newview/llfloateravatarpicker.cpp
+++ b/indra/newview/llfloateravatarpicker.cpp
@@ -370,6 +370,19 @@ void LLFloaterAvatarPicker::setAllowMultiple(BOOL allow_multiple)
getChild<LLScrollListCtrl>("Friends")->setAllowMultipleSelection(allow_multiple);
}
+// IDEVO
+static std::string clean_name_from_avatar_picker(const std::string& first, const std::string& last)
+{
+ if (last.empty() || last == "Resident")
+ {
+ return first;
+ }
+ else
+ {
+ return first + " " + last;
+ }
+}
+
// static
void LLFloaterAvatarPicker::processAvatarPickerReply(LLMessageSystem* msg, void**)
{
@@ -420,7 +433,7 @@ void LLFloaterAvatarPicker::processAvatarPickerReply(LLMessageSystem* msg, void*
}
else
{
- avatar_name = first_name + " " + last_name;
+ avatar_name = clean_name_from_avatar_picker(first_name, last_name);
search_results->setEnabled(TRUE);
found_one = TRUE;
}