Probably fix Torric's issue of notes being overwritten

This commit is contained in:
Lirusaito
2019-04-28 06:17:57 -04:00
parent 331023e878
commit c6b17c9005

View File

@@ -1501,10 +1501,13 @@ void LLPanelAvatar::processProperties(void* data, EAvatarProcessorType type)
const LLAvatarNotes* pAvatarNotes = static_cast<const LLAvatarNotes*>( data );
if (pAvatarNotes && (mAvatarID == pAvatarNotes->target_id) && (pAvatarNotes->target_id != LLUUID::null))
{
auto notes = getChildView("notes edit");
notes->setEnabled(true);
notes->setValue(pAvatarNotes->notes);
mHaveNotes = true;
if (!mHaveNotes) // Only update the UI if we don't already have the notes, we could be editing them now!
{
auto notes = getChildView("notes edit");
notes->setEnabled(true);
notes->setValue(pAvatarNotes->notes);
mHaveNotes = true;
}
mLastNotes = pAvatarNotes->notes;
}
}