SL-187 FIXED The experience list is unsorted the first time you open Experiences
parent
6a9658a650
commit
ba3f88c867
|
|
@ -93,9 +93,20 @@ void LLPanelExperiences::setExperienceList( const LLSD& experiences )
|
|||
|
||||
item->init(public_key);
|
||||
mExperiencesList->addItem(item, public_key);
|
||||
|
||||
const LLSD& experience_details = LLExperienceCache::instance().get(public_key);
|
||||
if (experience_details.isUndefined())
|
||||
{
|
||||
LLExperienceCache::instance().get(public_key, boost::bind(&LLPanelExperiences::sortExperiencesList, this));
|
||||
}
|
||||
}
|
||||
|
||||
mExperiencesList->sort();
|
||||
sortExperiencesList();
|
||||
}
|
||||
|
||||
void LLPanelExperiences::sortExperiencesList()
|
||||
{
|
||||
mExperiencesList->sort();
|
||||
}
|
||||
|
||||
void LLPanelExperiences::getExperienceIdsList(std::vector<LLUUID>& result)
|
||||
|
|
|
|||
|
|
@ -60,6 +60,8 @@ public:
|
|||
void setExperienceList(const LLSD& experiences);
|
||||
void getExperienceIdsList(std::vector<LLUUID>& result);
|
||||
|
||||
void sortExperiencesList();
|
||||
|
||||
LLExperienceItem* getSelectedExperienceItem();
|
||||
void removeExperiences( const LLSD& ids );
|
||||
void removeExperience( const LLUUID& id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue