summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelexperiences.cpp
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2014-07-02 01:05:52 +0100
committerCho <cho@lindenlab.com>2014-07-02 01:05:52 +0100
commitf804bcadb18488d36a97dc1f3a9ca2e4b1f7f039 (patch)
tree048403fe7eaef665f83f3fd4e7dcba5e5e25c711 /indra/newview/llpanelexperiences.cpp
parente20276aadade4f88b9b4ddc149ce4ef97f938d88 (diff)
Added 'Loading experiences...' message on experience lists before populating lists for ACME-1543
Diffstat (limited to 'indra/newview/llpanelexperiences.cpp')
-rw-r--r--indra/newview/llpanelexperiences.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llpanelexperiences.cpp b/indra/newview/llpanelexperiences.cpp
index 2885ef9305..3ee4b5e968 100644
--- a/indra/newview/llpanelexperiences.cpp
+++ b/indra/newview/llpanelexperiences.cpp
@@ -54,7 +54,11 @@ LLPanelExperiences::LLPanelExperiences( )
BOOL LLPanelExperiences::postBuild( void )
{
mExperiencesList = getChild<LLFlatListView>("experiences_list");
- if(hasString("no_experiences"))
+ if (hasString("loading_experiences"))
+ {
+ mExperiencesList->setNoItemsCommentText(getString("loading_experiences"));
+ }
+ else if (hasString("no_experiences"))
{
mExperiencesList->setNoItemsCommentText(getString("no_experiences"));
}
@@ -75,6 +79,10 @@ LLExperienceItem* LLPanelExperiences::getSelectedExperienceItem()
void LLPanelExperiences::setExperienceList( const LLSD& experiences )
{
+ if (hasString("no_experiences"))
+ {
+ mExperiencesList->setNoItemsCommentText(getString("no_experiences"));
+ }
mExperiencesList->clear();
LLSD::array_const_iterator it = experiences.beginArray();