diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-08-08 22:38:56 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-08-08 22:38:56 +0300 |
commit | 946bdc1ee352618f0d333292272aceb48b6d8dd8 (patch) | |
tree | 2e488b54bc6506fad1446be57ad8eb5ac26aad1a /indra/newview/llfloaterprofile.cpp | |
parent | 014d7616b65fba699690589426a74e8acfc1a16c (diff) |
SL-14556 Profile floater does not update after a name change
Diffstat (limited to 'indra/newview/llfloaterprofile.cpp')
-rw-r--r-- | indra/newview/llfloaterprofile.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llfloaterprofile.cpp b/indra/newview/llfloaterprofile.cpp index a4a9fe8410..624075e9fd 100644 --- a/indra/newview/llfloaterprofile.cpp +++ b/indra/newview/llfloaterprofile.cpp @@ -137,6 +137,20 @@ bool LLFloaterProfile::isPickTabSelected() return mPanelProfile->isPickTabSelected(); } +void LLFloaterProfile::refreshName() +{ + if (!mNameCallbackConnection.connected()) + { + mNameCallbackConnection = LLAvatarNameCache::get(mAvatarId, boost::bind(&LLFloaterProfile::onAvatarNameCache, this, _1, _2)); + } + + LLPanelProfileSecondLife *panel = findChild<LLPanelProfileSecondLife>("panel_profile_secondlife"); + if (panel) + { + panel->refreshName(); + } +} + void LLFloaterProfile::showClassified(const LLUUID& classified_id, bool edit) { mPanelProfile->showClassified(classified_id, edit); |