summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-05-18 15:56:40 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-05-18 15:56:40 +0300
commit0bd55476ac1807b7ae343b3b33c8b7b3168656ba (patch)
treef2c016df07f6132a988faa4d6b5d530b96b10d60
parent5493d4d5c79bbf90e3e353548bba2354e37eee4f (diff)
MAINT-8669 Add callback to show appropriate friendship menu option
-rw-r--r--indra/newview/llinspectavatar.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llinspectavatar.cpp b/indra/newview/llinspectavatar.cpp
index 1e15dc832c..88e7ad1b71 100644
--- a/indra/newview/llinspectavatar.cpp
+++ b/indra/newview/llinspectavatar.cpp
@@ -215,7 +215,9 @@ void LLInspectAvatar::onOpen(const LLSD& data)
}
// Generate link to avatar profile.
- getChild<LLUICtrl>("avatar_profile_link")->setTextArg("[LINK]", LLSLURL("agent", mAvatarID, "about").getSLURLString());
+ LLTextBase* avatar_profile_link = getChild<LLTextBase>("avatar_profile_link");
+ avatar_profile_link->setTextArg("[LINK]", LLSLURL("agent", mAvatarID, "about").getSLURLString());
+ avatar_profile_link->setIsFriendCallback(LLAvatarActions::isFriend);
// can't call from constructor as widgets are not built yet
requestUpdate();