From 37b039b9fd5d970b297715b9187b60a241e36a3a Mon Sep 17 00:00:00 2001
From: Vadim Savchuk <vsavchuk@productengine.com>
Date: Mon, 14 Dec 2009 19:42:54 +0200
Subject: [PATCH] Fixed normal priority bug EXT-2002 ([BSI] Side Tray opened on
 it's own when receiving group notice). The check for group info panel
 visisbility was wrong (returned true even if a parent was invisible).

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

diff --git a/indra/newview/llgroupactions.cpp b/indra/newview/llgroupactions.cpp
index fdb2b886a6a..6ca8c025b16 100644
--- a/indra/newview/llgroupactions.cpp
+++ b/indra/newview/llgroupactions.cpp
@@ -197,12 +197,12 @@ void LLGroupActions::activate(const LLUUID& group_id)
 	gAgent.sendReliableMessage();
 }
 
-bool	isGroupUIVisible()
+static bool isGroupUIVisible()
 {
 	LLPanel* panel = LLSideTray::getInstance()->findChild<LLPanel>("panel_group_info_sidetray");
 	if(!panel)
 		return false;
-	return panel->getVisible();
+	return panel->isInVisibleChain();
 }
 
 // static
-- 
GitLab