summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2014-08-21 19:43:50 +0100
committerCho <cho@lindenlab.com>2014-08-21 19:43:50 +0100
commitda639d1c9817c7333b959638e9a33b6ae7c664c0 (patch)
tree1992142761bc765870da90ed2ef83b9c91ca47f6 /indra/newview/llpreviewscript.cpp
parentd071aeb6f1ff0d98e27e93391f004d6ff947e3b1 (diff)
Show experiences with blank names as (untitled experience) in experience search, script editor, and allowed/trusted/blocked lists for ACME-1585
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
-rwxr-xr-xindra/newview/llpreviewscript.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index ffaffbe538..17727ef9a1 100755
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -1337,7 +1337,12 @@ void LLLiveLSLEditor::buildExperienceList()
}
else
{
- mExperiences->add(experience[LLExperienceCache::NAME].asString(), id, position);
+ std::string experience_name_string = experience[LLExperienceCache::NAME].asString();
+ if (experience_name_string.empty())
+ {
+ experience_name_string = LLTrans::getString("ExperienceNameUntitled");
+ }
+ mExperiences->add(experience_name_string, id, position);
}
}
@@ -1346,7 +1351,12 @@ void LLLiveLSLEditor::buildExperienceList()
const LLSD& experience = LLExperienceCache::get(associated);
if(experience.isDefined())
{
- item=mExperiences->add(experience[LLExperienceCache::NAME].asString(), associated, ADD_TOP);
+ std::string experience_name_string = experience[LLExperienceCache::NAME].asString();
+ if (experience_name_string.empty())
+ {
+ experience_name_string = LLTrans::getString("ExperienceNameUntitled");
+ }
+ item=mExperiences->add(experience_name_string, associated, ADD_TOP);
}
else
{