diff options
| -rw-r--r-- | indra/newview/llimfloater.cpp | 14 | ||||
| -rw-r--r-- | indra/newview/llimfloater.h | 1 | 
2 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index 1839a1ef86..4a18c8640f 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -510,6 +510,20 @@ void LLIMFloater::setVisible(BOOL visible)  	}  } +BOOL LLIMFloater::getVisible() +{ +	if(isChatMultiTab()) +	{ +		LLIMFloaterContainer* im_container = LLIMFloaterContainer::getInstance(); +		// Tabbed IM window is "visible" when we minimize it. +		return !im_container->isMinimized() && im_container->getVisible(); +	} +	else +	{ +		return LLTransientDockableFloater::getVisible(); +	} +} +  //static  bool LLIMFloater::toggle(const LLUUID& session_id)  { diff --git a/indra/newview/llimfloater.h b/indra/newview/llimfloater.h index 9552b30737..2f034d02b8 100644 --- a/indra/newview/llimfloater.h +++ b/indra/newview/llimfloater.h @@ -58,6 +58,7 @@ public:  	// LLView overrides  	/*virtual*/ BOOL postBuild();  	/*virtual*/ void setVisible(BOOL visible); +	/*virtual*/ BOOL getVisible();  	// Check typing timeout timer.  	/*virtual*/ void draw();  | 
