summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-01-04 14:36:04 -0800
committerLeyla Farazha <leyla@lindenlab.com>2010-01-04 14:36:04 -0800
commitfd8e1ea53586f6e7065baa143608102804882c9a (patch)
tree9acc06d9aacb17de8025151d95b23e42a482555e /indra
parentfbac3aaf0c43de4892ab0b95540f86c2b7c7a0de (diff)
moving this menu item to the right place
EXT-3388 [BSI] "Teleport" option missing dropdown when right clicking on friends list
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewermenu.cpp21
-rw-r--r--indra/newview/skins/default/xui/en/menu_avatar_other.xml6
-rw-r--r--indra/newview/skins/default/xui/en/menu_people_nearby.xml6
3 files changed, 6 insertions, 27 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index a28aef6ddd..b56af3c345 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -3017,26 +3017,6 @@ bool callback_eject(const LLSD& notification, const LLSD& response)
return false;
}
-void handle_avatar_teleport(const LLSD& avatar_id)
-{
- // Use avatar_id if available, otherwise default to right-click avatar
- LLVOAvatar* avatar = NULL;
- if (avatar_id.asUUID().notNull())
- {
- avatar = find_avatar_from_object(avatar_id.asUUID());
- }
- else
- {
- avatar = find_avatar_from_object(
- LLSelectMgr::getInstance()->getSelection()->getPrimaryObject());
- }
-
- if( avatar )
- {
- LLAvatarActions::offerTeleport(avatar->getID());
- }
-}
-
void handle_avatar_eject(const LLSD& avatar_id)
{
// Use avatar_id if available, otherwise default to right-click avatar
@@ -7933,7 +7913,6 @@ void initialize_menus()
view_listener_t::addMenu(new LLAvatarInviteToGroup(), "Avatar.InviteToGroup");
view_listener_t::addMenu(new LLAvatarGiveCard(), "Avatar.GiveCard");
commit.add("Avatar.Eject", boost::bind(&handle_avatar_eject, LLSD()));
- commit.add("Avatar.Teleport", boost::bind(&handle_avatar_teleport, LLSD()));
view_listener_t::addMenu(new LLAvatarSendIM(), "Avatar.SendIM");
view_listener_t::addMenu(new LLAvatarCall(), "Avatar.Call");
view_listener_t::addMenu(new LLAvatarReportAbuse(), "Avatar.ReportAbuse");
diff --git a/indra/newview/skins/default/xui/en/menu_avatar_other.xml b/indra/newview/skins/default/xui/en/menu_avatar_other.xml
index 78f057a7d7..0ad41546d2 100644
--- a/indra/newview/skins/default/xui/en/menu_avatar_other.xml
+++ b/indra/newview/skins/default/xui/en/menu_avatar_other.xml
@@ -93,10 +93,4 @@
<menu_item_call.on_enable
function="EnablePayAvatar" />
</menu_item_call>
- <menu_item_call
- label="Offer Teleport"
- name="teleport">
- <menu_item_call.on_click
- function="Avatar.Teleport"/>
- </menu_item_call>
</context_menu>
diff --git a/indra/newview/skins/default/xui/en/menu_people_nearby.xml b/indra/newview/skins/default/xui/en/menu_people_nearby.xml
index 5f2e6e0f6c..c4da1df017 100644
--- a/indra/newview/skins/default/xui/en/menu_people_nearby.xml
+++ b/indra/newview/skins/default/xui/en/menu_people_nearby.xml
@@ -63,4 +63,10 @@
function="Avatar.EnableItem"
parameter="can_block" />
</menu_item_check>
+ <menu_item_call
+ label="Offer Teleport"
+ name="teleport">
+ <menu_item_call.on_click
+ function="Avatar.OfferTeleport"/>
+ </menu_item_call>
</context_menu>