diff options
| -rw-r--r-- | indra/newview/llimconversation.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llimconversation.h | 2 | 
2 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/llimconversation.cpp b/indra/newview/llimconversation.cpp index d5bce5a43f..ca8493f787 100644 --- a/indra/newview/llimconversation.cpp +++ b/indra/newview/llimconversation.cpp @@ -54,7 +54,7 @@ LLIMConversation::LLIMConversation(const LLUUID& session_id)    , mInputEditor(NULL)    , mInputEditorTopPad(0)    , mRefreshTimer(new LLTimer()) -  , mHaveFocus(false) +  , mHasFocus(false)  {  	mSession = LLIMModel::getInstance()->findIMSession(mSessionID); @@ -217,10 +217,10 @@ void LLIMConversation::onFocusReceived()  	LLTransientDockableFloater::onFocusReceived(); -    mHasFocus = mHaveFocus; -    mHaveFocus = true; +    mHadFocus = mHasFocus; +    mHasFocus = true; -	if (! mHasFocus) +	if (! mHadFocus)  	{  	    LLIMFloaterContainer* container = LLIMFloaterContainer::getInstance();  	    container->setConvItemSelect(mSessionID); @@ -230,7 +230,7 @@ void LLIMConversation::onFocusReceived()  void LLIMConversation::onFocusLost()  {  	setBackgroundOpaque(false); -	mHaveFocus = false; +	mHasFocus = false;  	LLTransientDockableFloater::onFocusLost();  } diff --git a/indra/newview/llimconversation.h b/indra/newview/llimconversation.h index e09ba79a6a..bad5eaa99f 100644 --- a/indra/newview/llimconversation.h +++ b/indra/newview/llimconversation.h @@ -140,8 +140,8 @@ private:  	LLTimer* mRefreshTimer; ///< Defines the rate at which refresh() is called. +	bool mHadFocus;  	bool mHasFocus; -	bool mHaveFocus;  };  | 
