diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 3bf390e..870c3fc 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -9751,6 +9751,19 @@ class LLAdvancedLeaveAdminStatus : public view_listener_t | |||
9751 | } | 9751 | } |
9752 | }; | 9752 | }; |
9753 | 9753 | ||
9754 | class LLAvatarReportAbuse : public view_listener_t | ||
9755 | { | ||
9756 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9757 | { | ||
9758 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); | ||
9759 | if(avatar) | ||
9760 | { | ||
9761 | LLFloaterReporter::showFromObject(avatar->getID()); | ||
9762 | } | ||
9763 | return true; | ||
9764 | } | ||
9765 | }; | ||
9766 | |||
9754 | 9767 | ||
9755 | 9768 | ||
9756 | static void addMenu(view_listener_t *menu, const char *name) | 9769 | static void addMenu(view_listener_t *menu, const char *name) |
@@ -9897,6 +9910,7 @@ void initialize_menus() | |||
9897 | addMenu(new LLAvatarGiveCard(), "Avatar.GiveCard"); | 9910 | addMenu(new LLAvatarGiveCard(), "Avatar.GiveCard"); |
9898 | addMenu(new LLAvatarEject(), "Avatar.Eject"); | 9911 | addMenu(new LLAvatarEject(), "Avatar.Eject"); |
9899 | addMenu(new LLAvatarSendIM(), "Avatar.SendIM"); | 9912 | addMenu(new LLAvatarSendIM(), "Avatar.SendIM"); |
9913 | addMenu(new LLAvatarReportAbuse(), "Avatar.ReportAbuse"); | ||
9900 | 9914 | ||
9901 | addMenu(new LLObjectEnableMute(), "Avatar.EnableMute"); | 9915 | addMenu(new LLObjectEnableMute(), "Avatar.EnableMute"); |
9902 | addMenu(new LLAvatarEnableAddFriend(), "Avatar.EnableAddFriend"); | 9916 | addMenu(new LLAvatarEnableAddFriend(), "Avatar.EnableAddFriend"); |