diff options
| author | Cho <cho@lindenlab.com> | 2014-08-21 19:43:50 +0100 |
|---|---|---|
| committer | Cho <cho@lindenlab.com> | 2014-08-21 19:43:50 +0100 |
| commit | da639d1c9817c7333b959638e9a33b6ae7c664c0 (patch) | |
| tree | 1992142761bc765870da90ed2ef83b9c91ca47f6 /indra/newview/llpreviewscript.cpp | |
| parent | d071aeb6f1ff0d98e27e93391f004d6ff947e3b1 (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-x | indra/newview/llpreviewscript.cpp | 14 |
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 { |
