From dd4156251b0ad18f283d1b79a692c8a4a76c0900 Mon Sep 17 00:00:00 2001
From: Andrey Kleshchev <andreykproductengine@lindenlab.com>
Date: Wed, 10 Aug 2022 17:24:26 +0300
Subject: [PATCH] SL-17924 Don't clear pick's description when clicking on
 description for the first time

---
 indra/newview/llpanelprofilepicks.cpp | 3 ---
 indra/newview/llpanelprofilepicks.h   | 2 --
 2 files changed, 5 deletions(-)

diff --git a/indra/newview/llpanelprofilepicks.cpp b/indra/newview/llpanelprofilepicks.cpp
index 8896c3d2384..cf693f41b24 100644
--- a/indra/newview/llpanelprofilepicks.cpp
+++ b/indra/newview/llpanelprofilepicks.cpp
@@ -459,7 +459,6 @@ LLPanelProfilePick::LLPanelProfilePick()
  , mRequestedId(LLUUID::null)
  , mLocationChanged(false)
  , mNewPick(false)
- , mCurrentPickDescription("")
  , mIsEditing(false)
 {
 }
@@ -579,7 +578,6 @@ void LLPanelProfilePick::onDescriptionFocusReceived()
     {
         mIsEditing = true;
         mPickDescription->setParseHTML(false);
-        setPickDesc(mCurrentPickDescription);
     }
 }
 
@@ -614,7 +612,6 @@ void LLPanelProfilePick::processProperties(const LLPickData* pick_info)
     setPickName(pick_info->name);
     setPickDesc(pick_info->desc);
     setPosGlobal(pick_info->pos_global);
-    mCurrentPickDescription = pick_info->desc;
 
     // Send remote parcel info request to get parcel name and sim (region) name.
     sendParcelInfoRequest();
diff --git a/indra/newview/llpanelprofilepicks.h b/indra/newview/llpanelprofilepicks.h
index 8973b37d168..f84463cc9b7 100644
--- a/indra/newview/llpanelprofilepicks.h
+++ b/indra/newview/llpanelprofilepicks.h
@@ -242,8 +242,6 @@ class LLPanelProfilePick
     bool mNewPick;
     bool                mIsEditing;
 
-    std::string mCurrentPickDescription;
-
     void onDescriptionFocusReceived();
 };
 
-- 
GitLab