diff options
| author | AlexanderP ProductEngine <apaschenko@productengine.com> | 2012-09-21 19:42:11 +0300 | 
|---|---|---|
| committer | AlexanderP ProductEngine <apaschenko@productengine.com> | 2012-09-21 19:42:11 +0300 | 
| commit | 8b63f7f50367f5726d03fb784f5a2f0783470b9c (patch) | |
| tree | 9acd488e4c3511aadfff23724432bc8364810b89 /indra | |
| parent | 073065d6520a3b438fce3c5c27ee51c6d86ee742 (diff) | |
CHUI-289 ADDITIONAL FIX (Newly added conversation is not selected in conversation list):
gave more meaningful names to variables
Diffstat (limited to 'indra')
| -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;  }; | 
