summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorYchebotarev ProductEngine <ychebotarev@productengine.com>2010-01-13 17:49:09 +0200
committerYchebotarev ProductEngine <ychebotarev@productengine.com>2010-01-13 17:49:09 +0200
commit6ce581432b91e9117be2d37b622d842bb1026544 (patch)
treeace3610ab9d40e62292a3e47b9109f244782ca74 /indra/newview
parenta619f9c307a46d709061c6e1d8179e699964688d (diff)
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
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llgroupactions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llgroupactions.cpp b/indra/newview/llgroupactions.cpp
index a78a0a43b4..d6e2bb0445 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();