MAINT-8669 Add callback to show appropriate friendship menu option
parent
5493d4d5c7
commit
0bd55476ac
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue