diff options
author | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-12-07 10:25:39 -0800 |
---|---|---|
committer | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-12-07 10:25:39 -0800 |
commit | dd030f1b750c230d02515027d69ba79f0084a221 (patch) | |
tree | 68b5f5ebe16a0c5d77fa50dc82f68574ca452e53 /indra/newview/llimview.cpp | |
parent | 8dbb91728fba85f545dce39096399f505dabb960 (diff) | |
parent | 6122f000cb249dd2f8cbc0d16e664bb1b00d5864 (diff) |
merging in latest changes
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r-- | indra/newview/llimview.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 1a2632f921..6ffc3b610b 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -30,6 +30,7 @@ #include "llavatarnamecache.h" // IDEVO #include "llavataractions.h" +#include "llfloaterconversationlog.h" #include "llfloaterreg.h" #include "llfontgl.h" #include "llgl.h" @@ -2482,6 +2483,18 @@ void LLIMMgr::addMessage( new_session_id = computeSessionID(dialog, other_participant_id); } + // Open conversation log if offline messages are present + if (is_offline_msg) + { + LLFloaterConversationLog* floater_log = + LLFloaterReg::getTypedInstance<LLFloaterConversationLog>("conversation"); + if (floater_log && !(floater_log->isFrontmost())) + { + floater_log->openFloater(); + floater_log->setFrontmost(TRUE); + } + } + //*NOTE session_name is empty in case of incoming P2P sessions std::string fixed_session_name = from; bool name_is_setted = false; |