diff options
author | James Cook <james@lindenlab.com> | 2010-02-01 11:00:14 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-02-01 11:00:14 -0800 |
commit | e88e1022f804bd23edff73f95e5ac3cec5effcfb (patch) | |
tree | 4343bbc069ad6dae721273a54e221864b6d120a1 /indra | |
parent | 852c4acb59f6a15e3f384904ab9b237795107119 (diff) |
Show SLIDs in avatar picker
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloateravatarpicker.cpp | 15 |
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; } |