FIRE-7263: Show resident profile from SLURL context menu in nearby chat and other text occurrances
parent
cab67e78cf
commit
34e96f7312
|
|
@ -1798,6 +1798,10 @@ BOOL LLScrollListCtrl::handleRightMouseDown(S32 x, S32 y, MASK mask)
|
|||
registrar.add("Url.Execute", boost::bind(&LLScrollListCtrl::showNameDetails, id, is_group));
|
||||
registrar.add("Url.CopyLabel", boost::bind(&LLScrollListCtrl::copyNameToClipboard, id, is_group));
|
||||
registrar.add("Url.CopyUrl", boost::bind(&LLScrollListCtrl::copySLURLToClipboard, id, is_group));
|
||||
// <FS:Ansariel> FS-7263: Register Url.ShowProfile for menu_url_agent.xml
|
||||
// so we can properly open agent profile from contact
|
||||
// list and textareas (nearby chat) context menus as well.
|
||||
registrar.add("Url.ShowProfile", boost::bind(&LLUrlAction::showProfile, "secondlife:///app/agent/" + id + "/about"));
|
||||
|
||||
// create the context menu from the XUI file and display it
|
||||
std::string menu_name = is_group ? "menu_url_group.xml" : "menu_url_agent.xml";
|
||||
|
|
|
|||
|
|
@ -6,8 +6,11 @@
|
|||
label="Show Resident Profile"
|
||||
layout="topleft"
|
||||
name="show_agent">
|
||||
<!-- FS:Ansariel: FS-7263 - Make sure the agent profile is opened instead of the inspect panel
|
||||
<menu_item_call.on_click
|
||||
function="Url.Execute" />
|
||||
function="Url.Execute" /> -->
|
||||
<menu_item_call.on_click
|
||||
function="Url.ShowProfile" />
|
||||
</menu_item_call>
|
||||
<menu_item_separator
|
||||
layout="topleft" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue