Show 'No results' in Experiences Search for ACME-1313
parent
a58d31f602
commit
54a9087190
|
|
@ -416,8 +416,16 @@ void LLFloaterExperiencePicker::filterContent()
|
|||
if (search_results->isEmpty())
|
||||
{
|
||||
LLStringUtil::format_map_t map;
|
||||
map["[TEXT]"] = childGetText(TEXT_EDIT);
|
||||
getChild<LLScrollListCtrl>(LIST_RESULTS)->setCommentText(getString("not_found", map));
|
||||
std::string search_text = childGetText(TEXT_EDIT);
|
||||
map["[TEXT]"] = search_text;
|
||||
if (search_text.empty())
|
||||
{
|
||||
getChild<LLScrollListCtrl>(LIST_RESULTS)->setCommentText(getString("no_results"));
|
||||
}
|
||||
else
|
||||
{
|
||||
getChild<LLScrollListCtrl>(LIST_RESULTS)->setCommentText(getString("not_found", map));
|
||||
}
|
||||
search_results->setEnabled(false);
|
||||
getChildView(BTN_OK)->setEnabled(false);
|
||||
getChildView(BTN_PROFILE)->setEnabled(false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue