summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2014-08-20 01:11:27 +0100
committerCho <cho@lindenlab.com>2014-08-20 01:11:27 +0100
commit89eac2548a9b66d8bab27a7e8d7d1ed2159e9515 (patch)
tree3a0c3d830d233331fab1edce5ab72fc9ca0e0a92 /indra/llui
parent55ed31173798a7d5a3b7cb42c6d6d552820c5e14 (diff)
Made it possible to search for experiences with an empty search string, and show experiences with blank names as (untitled experience) for ACME-1585
Diffstat (limited to 'indra/llui')
-rwxr-xr-xindra/llui/llurlentry.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/llurlentry.cpp b/indra/llui/llurlentry.cpp
index 67da98b95a..be08d92c78 100755
--- a/indra/llui/llurlentry.cpp
+++ b/indra/llui/llurlentry.cpp
@@ -1235,7 +1235,8 @@ std::string LLUrlEntryExperienceProfile::getLabel( const std::string &url, const
const LLSD& experience_details = LLExperienceCache::get(experience_id);
if(!experience_details.isUndefined())
{
- return experience_details[LLExperienceCache::NAME].asString();
+ std::string experience_name_string = experience_details[LLExperienceCache::NAME].asString();
+ return experience_name_string.empty() ? LLTrans::getString("ExperienceNameUntitled") : experience_name_string;
}
addObserver(experience_id_string, url, cb);