MAINT-423 FIXED Unminimize session floater and select this session when sharing initiated.

meow-7.2.2
maxim_productengine 2014-05-06 11:28:13 +03:00
parent ca967ce0a2
commit 849ce1e30c
1 changed files with 8 additions and 0 deletions

View File

@ -525,6 +525,14 @@ void LLAvatarActions::share(const LLUUID& id)
{
// we should always get here, but check to verify anyways
LLIMModel::getInstance()->addMessage(session_id, SYSTEM_FROM, LLUUID::null, LLTrans::getString("share_alert"), false);
LLFloaterIMSessionTab* session_floater = LLFloaterIMSessionTab::findConversation(session_id);
if (session_floater && session_floater->isMinimized())
{
session_floater->setMinimized(false);
}
LLFloaterIMContainer *im_container = LLFloaterReg::getTypedInstance<LLFloaterIMContainer>("im_container");
im_container->selectConversationPair(session_id, true);
}
}