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

@@ -1500,11 +1500,14 @@ void LLPanelAvatar::processProperties(void* data, EAvatarProcessorType type)
{ {
const LLAvatarNotes* pAvatarNotes = static_cast<const LLAvatarNotes*>( data ); const LLAvatarNotes* pAvatarNotes = static_cast<const LLAvatarNotes*>( data );
if (pAvatarNotes && (mAvatarID == pAvatarNotes->target_id) && (pAvatarNotes->target_id != LLUUID::null)) if (pAvatarNotes && (mAvatarID == pAvatarNotes->target_id) && (pAvatarNotes->target_id != LLUUID::null))
{
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"); auto notes = getChildView("notes edit");
notes->setEnabled(true); notes->setEnabled(true);
notes->setValue(pAvatarNotes->notes); notes->setValue(pAvatarNotes->notes);
mHaveNotes = true; mHaveNotes = true;
}
mLastNotes = pAvatarNotes->notes; mLastNotes = pAvatarNotes->notes;
} }
} }