diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index 7119bf3f3521ba5dc857543fc8bbe5b79971ef16..175e9658b0408d646d57ca256ec47a6b4a25fc67 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -806,6 +806,10 @@ void LLPanelProfileSecondLife::onCommitMenu(const LLSD& userdata) { wstr = utf8str_to_wstring(getAvatarId().asString()); } + else if (item_name == "slurl") + { + wstr = utf8str_to_wstring(LLSLURL("agent", getAvatarId(), "about").getSLURLString()); + } LLClipboard::instance().copyToClipboard(wstr, 0, wstr.size()); } diff --git a/indra/newview/skins/default/xui/en/menu_name_field.xml b/indra/newview/skins/default/xui/en/menu_name_field.xml index 3c5e5dd353fa9decef53ab5bc5b8c0aa6742997d..5b02c843e1b442eafdd26f6a898cc62b2cd84c5a 100644 --- a/indra/newview/skins/default/xui/en/menu_name_field.xml +++ b/indra/newview/skins/default/xui/en/menu_name_field.xml @@ -18,5 +18,11 @@ layout="topleft" name="copy_id"> <on_click function="Profile.CopyName" parameter="id"/> + </menu_item_call> + <menu_item_call + label="Copy Agent SLurl" + layout="topleft" + name="copy_id"> + <on_click function="Profile.CopyName" parameter="slurl"/> </menu_item_call> </toggleable_menu>