diff options
author | MaximB ProductEngine <mberezhnoy@productengine.com> | 2012-10-11 14:06:35 +0300 |
---|---|---|
committer | MaximB ProductEngine <mberezhnoy@productengine.com> | 2012-10-11 14:06:35 +0300 |
commit | 82e5649fba22f7fa0cb4744f632aa836f0855f85 (patch) | |
tree | 0ed3ecc20ca8801ff96f2e3c6e22a9f2cca31a0f /indra | |
parent | ecd263485a5205f3444041a58e2bb060a3075e44 (diff) |
CHUI-377 (Icons in message panel out of position when nearby chat conversation selected)
Fixed bug with collapsing messages pane
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llimconversation.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/indra/newview/llimconversation.cpp b/indra/newview/llimconversation.cpp index 3b334df189..9f3c6d0f3d 100644 --- a/indra/newview/llimconversation.cpp +++ b/indra/newview/llimconversation.cpp @@ -505,7 +505,12 @@ void LLIMConversation::onSlide(LLIMConversation* self) /*virtual*/ void LLIMConversation::onOpen(const LLSD& key) { - checkIfTornOff(); + if (!checkIfTornOff()) + { + LLIMFloaterContainer* host_floater = dynamic_cast<LLIMFloaterContainer*>(getHost()); + // Show the messages pane when opening a floater hosted in the Conversations + host_floater->collapseMessagesPane(false); + } } // virtual @@ -541,13 +546,6 @@ bool LLIMConversation::isChatMultiTab() bool LLIMConversation::checkIfTornOff() { bool isTorn = !getHost(); - if (!isTorn) - { - LLIMFloaterContainer* host_floater = dynamic_cast<LLIMFloaterContainer*>(getHost()); - - // Show the messages pane when opening a floater hosted in the Conversations - host_floater->collapseMessagesPane(false); - } if (isTorn != isTornOff()) { @@ -556,4 +554,4 @@ bool LLIMConversation::checkIfTornOff() } return isTorn; -}
\ No newline at end of file +} |