diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-12-09 07:44:27 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-12-09 09:09:54 +0200 |
commit | b79c4e47a80e4e4aba01475cdd2e65cbaf6385a6 (patch) | |
tree | 3a2e4648f102a50cd17bb7453ae4d83be30c9374 /indra/newview/llfloateravatarpicker.cpp | |
parent | 8496ae48dd4c5265f4d8007c394fbdf16640d8a2 (diff) |
SL-18776 Fix handling for an empty avatar list
Diffstat (limited to 'indra/newview/llfloateravatarpicker.cpp')
-rw-r--r-- | indra/newview/llfloateravatarpicker.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/indra/newview/llfloateravatarpicker.cpp b/indra/newview/llfloateravatarpicker.cpp index 7cd2e0146a..2422596f60 100644 --- a/indra/newview/llfloateravatarpicker.cpp +++ b/indra/newview/llfloateravatarpicker.cpp @@ -680,7 +680,12 @@ void LLFloaterAvatarPicker::processResponse(const LLUUID& query_id, const LLSD& // clear "Searching" label on first results search_results->deleteAllItems(); - if (content.has("agents")) + if (content.has("failure_reason")) + { + getChild<LLScrollListCtrl>("SearchResults")->setCommentText(content["failure_reason"].asString()); + getChildView("ok_btn")->setEnabled(false); + } + else { LLSD agents = content["agents"]; @@ -733,10 +738,6 @@ void LLFloaterAvatarPicker::processResponse(const LLUUID& query_id, const LLSD& search_results->setFocus(TRUE); } } - else if (content.has("failure_reason")) - { - getChild<LLScrollListCtrl>("SearchResults")->setCommentText(content["failure_reason"].asString()); - } } } |