FIRE-32926 - Profile notes that are actively being edited get discarded when the profile owner enters or leaves the region at the same time.

meow-7.2.2
Zi Ree 2023-05-04 18:22:09 +02:00
parent 1ecba4cc3c
commit 16e7e999cf
1 changed files with 8 additions and 0 deletions

View File

@ -3138,6 +3138,14 @@ void LLPanelProfileNotes::onOpen(const LLSD& key)
void LLPanelProfileNotes::setNotesText(const std::string &text)
{
// <FS:Zi> FIRE-32926 - Profile notes that are actively being edited get discarded when
// the profile owner enters or leaves the region at the same time.
if (mHasUnsavedChanges)
{
return;
}
// </FS:Zi>
mSaveChanges->setEnabled(FALSE);
mDiscardChanges->setEnabled(FALSE);
mHasUnsavedChanges = false;