From d06742958c3f28cd62e5752aadc107ff98718512 Mon Sep 17 00:00:00 2001 From: Dmitry Zaporozhan Date: Mon, 14 Dec 2009 19:14:16 +0200 Subject: Update for critical bug EXT-3427 - Viewer chashes if select Moderator Options submenu in Voice controls quickly. Added code to hide menu before destroying it. Added aditional checks. Added comments --HG-- branch : product-engine --- indra/newview/llpanelpeoplemenus.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'indra/newview/llpanelpeoplemenus.cpp') diff --git a/indra/newview/llpanelpeoplemenus.cpp b/indra/newview/llpanelpeoplemenus.cpp index 04fe42de9f..573de1e51c 100644 --- a/indra/newview/llpanelpeoplemenus.cpp +++ b/indra/newview/llpanelpeoplemenus.cpp @@ -81,6 +81,14 @@ void ContextMenu::show(LLView* spawning_view, const std::vector& uuids, LLMenuGL::showPopup(spawning_view, mMenu, x, y); } +void ContextMenu::hide() +{ + if(mMenu) + { + mMenu->hide(); + } +} + //== NearbyMenu =============================================================== LLContextMenu* NearbyMenu::createMenu() -- cgit v1.2.3 From fe0da9bf7b81d24a9614f95d9f91012796eabf77 Mon Sep 17 00:00:00 2001 From: Paul Guslisty Date: Mon, 14 Dec 2009 19:53:54 +0200 Subject: Fixed low bug EXT - 3255 (Call button is enabled in the People & Profile panels while voice is disabled) --HG-- branch : product-engine --- indra/newview/llpanelpeoplemenus.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'indra/newview/llpanelpeoplemenus.cpp') diff --git a/indra/newview/llpanelpeoplemenus.cpp b/indra/newview/llpanelpeoplemenus.cpp index 573de1e51c..0314642d9e 100644 --- a/indra/newview/llpanelpeoplemenus.cpp +++ b/indra/newview/llpanelpeoplemenus.cpp @@ -181,7 +181,25 @@ bool NearbyMenu::enableContextMenuItem(const LLSD& userdata) const LLUUID& id = mUUIDs.front(); return LLAvatarActions::isFriend(id); } + else if (item == std::string("can_call")) + { + bool result = false; + int size = mUUIDs.size(); + std::cout << size << std::endl; + std::vector::const_iterator + id = mUUIDs.begin(), + uuids_end = mUUIDs.end(); + for (;id != uuids_end; ++id) + { + if (LLAvatarActions::canCall(*id)) + { + result = true; + break; + } + } + return result; + } return false; } -- cgit v1.2.3