diff options
author | maksymsproductengine <maksymsproductengine@lindenlab.com> | 2013-05-30 17:04:19 +0300 |
---|---|---|
committer | maksymsproductengine <maksymsproductengine@lindenlab.com> | 2013-05-30 17:04:19 +0300 |
commit | 705d85fb2f0856fdc19fd5f71f4dea33951db015 (patch) | |
tree | 6f5c69d6bf91e7c62aa37b112b8e89827e7c769a /indra/newview | |
parent | 5287578d932f562e317bcdd409b9b30ecf43a403 (diff) |
CHUI-942 FIXED Choose Resident picker problems
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llfloateravatarpicker.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llfloateravatarpicker.cpp b/indra/newview/llfloateravatarpicker.cpp index 113aa9a8f2..c0afb72cff 100755 --- a/indra/newview/llfloateravatarpicker.cpp +++ b/indra/newview/llfloateravatarpicker.cpp @@ -513,6 +513,7 @@ void LLFloaterAvatarPicker::find() url += "/"; } url += "?page_size=100&names="; + std::replace(text.begin(), text.end(), '.', ' '); url += LLURI::escape(text); llinfos << "avatar picker " << url << llendl; LLHTTPClient::get(url, new LLAvatarPickerResponder(mQueryID, getKey().asString())); @@ -748,7 +749,12 @@ void LLFloaterAvatarPicker::processResponse(const LLUUID& query_id, const LLSD& { getChildView("ok_btn")->setEnabled(true); search_results->setEnabled(true); - search_results->selectFirstItem(); + search_results->sortByColumnIndex(1, TRUE); + std::string text = getChild<LLUICtrl>("Edit")->getValue().asString(); + if (!search_results->selectItemByLabel(text, TRUE, 1)) + { + search_results->selectFirstItem(); + } onList(); search_results->setFocus(TRUE); } |