diff options
| author | Igor Borovkov <iborovkov@productengine.com> | 2009-12-02 16:53:00 +0200 | 
|---|---|---|
| committer | Igor Borovkov <iborovkov@productengine.com> | 2009-12-02 16:53:00 +0200 | 
| commit | e2ec9459cb8df1662304e009944dafb9f558b1b7 (patch) | |
| tree | 4cb3f02b02cd87d857b5764237a8084f18be34ab /indra/newview | |
| parent | 9d8b189886ae14800d58f9729d8c8ea9b338ed52 (diff) | |
fixed EXT-2938 (Log of not active IM floater isn't refreshed when IM session is in multitab mode)
by employing setVisible for updating messaged
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llimfloater.cpp | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index 3315d5b18d..9b7df38c5e 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -352,9 +352,6 @@ LLIMFloater* LLIMFloater::show(const LLUUID& session_id)  	LLIMFloater* floater = LLFloaterReg::showTypedInstance<LLIMFloater>("impanel", session_id); -	floater->updateMessages(); -	floater->mInputEditor->setFocus(TRUE); -  	if(isChatMultiTab())  	{  		// do not add existed floaters to avoid adding torn off instances @@ -434,6 +431,13 @@ void LLIMFloater::setVisible(BOOL visible)  	{  		channel->updateShowToastsState();  	} + +	if (visible && mChatHistory && mInputEditor) +	{ +		//only if floater was construced and initialized from xml +		updateMessages(); +		mInputEditor->setFocus(TRUE); +	}  }  //static | 
