diff options
author | AlexanderP ProductEngine <apaschenko@productengine.com> | 2012-08-22 13:25:06 +0300 |
---|---|---|
committer | AlexanderP ProductEngine <apaschenko@productengine.com> | 2012-08-22 13:25:06 +0300 |
commit | 76827f03d429e3ce80def7a49c2657a1cb1179d4 (patch) | |
tree | b4295b9f59064b8f8c9ad33eb47700683379d5db /indra/newview/llimconversation.cpp | |
parent | e4de40ad8e1abed99c8c8d681c1dda46e72df94f (diff) |
CHUI-289 FIXED (Newly added conversation is not selected in conversation list): added the "reverse" selecting - list item is selected when the corresponding floter gets focus.
Diffstat (limited to 'indra/newview/llimconversation.cpp')
-rw-r--r-- | indra/newview/llimconversation.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llimconversation.cpp b/indra/newview/llimconversation.cpp index 216c5bbd70..bab588126f 100644 --- a/indra/newview/llimconversation.cpp +++ b/indra/newview/llimconversation.cpp @@ -215,11 +215,21 @@ void LLIMConversation::onFocusReceived() } LLTransientDockableFloater::onFocusReceived(); + + mHasFocus = mHaveFocus; + mHaveFocus = true; + + if (! mHasFocus) + { + LLIMFloaterContainer* container = LLIMFloaterContainer::getInstance(); + container->setConvItemSelect(mSessionID); + } } void LLIMConversation::onFocusLost() { setBackgroundOpaque(false); + mHaveFocus = false; LLTransientDockableFloater::onFocusLost(); } |