From 6ce581432b91e9117be2d37b622d842bb1026544 Mon Sep 17 00:00:00 2001
From: Ychebotarev ProductEngine <ychebotarev@productengine.com>
Date: Wed, 13 Jan 2010 17:49:09 +0200
Subject: [PATCH] possible fix for freeze with group activities related bugs:
 EXT-4113 EXT-4111 EXT-4087 problem - findChild takes loooonng time to execute
 so cache it...

--HG--
branch : product-engine
---
 indra/newview/llgroupactions.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/indra/newview/llgroupactions.cpp b/indra/newview/llgroupactions.cpp
index a78a0a43b46..d6e2bb0445f 100644
--- a/indra/newview/llgroupactions.cpp
+++ b/indra/newview/llgroupactions.cpp
@@ -232,7 +232,9 @@ void LLGroupActions::activate(const LLUUID& group_id)
 
 static bool isGroupUIVisible()
 {
-	LLPanel* panel = LLSideTray::getInstance()->findChild<LLPanel>("panel_group_info_sidetray");
+	static LLPanel* panel = 0;
+	if(!panel)
+		panel = LLSideTray::getInstance()->findChild<LLPanel>("panel_group_info_sidetray");
 	if(!panel)
 		return false;
 	return panel->isInVisibleChain();
-- 
GitLab