diff options
author | Merov Linden <merov@lindenlab.com> | 2012-08-23 11:32:20 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-08-23 11:32:20 -0700 |
commit | 4ea73df484d22815026367771f9d728d755f6274 (patch) | |
tree | 6ffe6dc0eb3d2cb25bf5237130aa501b6dff3262 /indra/newview/llconversationview.cpp | |
parent | 679d0f78f9a4a83e5eb2ec857ceb2d9b8c6f4d91 (diff) |
CHUI-282 : WIP : Further separate view from model for llconversation items
Diffstat (limited to 'indra/newview/llconversationview.cpp')
-rw-r--r-- | indra/newview/llconversationview.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index 464d061a82..6cc911ecef 100644 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -62,4 +62,17 @@ void LLConversationViewSession::selectItem() session_floater->setFocus(TRUE); } +void LLConversationViewSession::setVisibleIfDetached(BOOL visible) +{ + // Do this only if the conversation floater has been torn off (i.e. no multi floater host) and is not minimized + // Note: minimized dockable floaters are brought to front hence unminimized when made visible and we don't want that here + LLConversationItem* item = dynamic_cast<LLConversationItem*>(mViewModelItem); + LLFloater* session_floater = LLIMConversation::getConversation(item->getUUID()); + + if (session_floater && !session_floater->getHost() && !session_floater->isMinimized()) + { + session_floater->setVisible(visible); + } +} + // EOF |