Skip to content
Snippets Groups Projects
Commit bd9322a6 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Add copy slurl to profile

parent 52f2e497
No related branches found
No related tags found
No related merge requests found
...@@ -806,6 +806,10 @@ void LLPanelProfileSecondLife::onCommitMenu(const LLSD& userdata) ...@@ -806,6 +806,10 @@ void LLPanelProfileSecondLife::onCommitMenu(const LLSD& userdata)
{ {
wstr = utf8str_to_wstring(getAvatarId().asString()); 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()); LLClipboard::instance().copyToClipboard(wstr, 0, wstr.size());
} }
......
...@@ -18,5 +18,11 @@ ...@@ -18,5 +18,11 @@
layout="topleft" layout="topleft"
name="copy_id"> name="copy_id">
<on_click function="Profile.CopyName" parameter="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> </menu_item_call>
</toggleable_menu> </toggleable_menu>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment