From 7c0993ef9eafedbcb83ac9ced1ac1ef83bdd02f5 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Mon, 2 Aug 2021 14:38:44 +0300 Subject: SL-15737 remove context menu for self in "Avatars nearby" list --- indra/newview/llfloaterperformance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/llfloaterperformance.cpp b/indra/newview/llfloaterperformance.cpp index 689205575b..e53154dd75 100644 --- a/indra/newview/llfloaterperformance.cpp +++ b/indra/newview/llfloaterperformance.cpp @@ -554,7 +554,7 @@ void LLFloaterPerformance::onAvatarListRightClick(LLUICtrl* ctrl, S32 x, S32 y) list->selectItemAt(x, y, MASK_NONE); uuid_vec_t selected_uuids; - if(list->getCurrentID().notNull()) + if((list->getCurrentID().notNull()) && (list->getCurrentID() != gAgentID)) { selected_uuids.push_back(list->getCurrentID()); mContextMenu->show(ctrl, selected_uuids, x, y); -- cgit v1.2.3