From e0360ee13ac683007210cf13a49ca2c4178207fe Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <andreykproductengine@lindenlab.com> Date: Thu, 14 Jul 2022 17:41:17 +0300 Subject: SL-17773 Discard changes clears notes instead of setting previous version --- indra/newview/llpanelprofile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index d531bee79f..2b6be5f5fe 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -2472,7 +2472,7 @@ void LLPanelProfileNotes::onDiscardNotesChanges() void LLPanelProfileNotes::processProperties(LLAvatarNotes* avatar_notes) { - mNotesEditor->setValue(avatar_notes->notes); + setNotesText(avatar_notes->notes); mNotesEditor->setEnabled(TRUE); setLoaded(); } @@ -2480,7 +2480,7 @@ void LLPanelProfileNotes::processProperties(LLAvatarNotes* avatar_notes) void LLPanelProfileNotes::resetData() { resetLoading(); - mNotesEditor->setValue(LLStringUtil::null); + setNotesText(std::string()); } void LLPanelProfileNotes::setAvatarId(const LLUUID& avatar_id) -- cgit v1.2.3