Probably fix Torric's issue of notes being overwritten
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user