summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2014-04-19 02:56:24 +0100
committerCho <cho@lindenlab.com>2014-04-19 02:56:24 +0100
commit54a90871906bcb72f9cd216ea437d59893b099aa (patch)
tree8e2fa0495477ac554dbceb842d7a5c0e99d141d2 /indra/newview
parenta58d31f6029ab6907a3c89a9ae826fe648c7910e (diff)
Show 'No results' in Experiences Search for ACME-1313
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloaterexperiencepicker.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/newview/llfloaterexperiencepicker.cpp b/indra/newview/llfloaterexperiencepicker.cpp
index b82257ee56..f68bf7f9a6 100644
--- a/indra/newview/llfloaterexperiencepicker.cpp
+++ b/indra/newview/llfloaterexperiencepicker.cpp
@@ -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);