EXT-547 Loosing focus on an IM window looses typed entries

and a fix for undocked im windows not closing when we open another im window
reviewed by james
meow-7.2.2
Leyla Farazha 2009-08-18 00:03:33 +00:00
parent 733e86c1fc
commit 8089e12b86
1 changed files with 6 additions and 3 deletions

View File

@ -2177,8 +2177,11 @@ void LLIMFloater::onFocusLost()
// (hence we are no longer focused)
if (isDocked())
{
// app not quitting
closeFloater(false);
LLIMFloater* floater = LLFloaterReg::getTypedInstance<LLIMFloater>("impanel", mSessionID);
if (floater)
{
floater->setVisible(false);
}
}
}
@ -2214,7 +2217,7 @@ LLIMFloater* LLIMFloater::show(const LLUUID& session_id)
iter != inst_list.end(); ++iter)
{
LLIMFloater* floater = dynamic_cast<LLIMFloater*>(*iter);
if (floater)
if (floater && floater->isDocked())
{
floater->setVisible(false);
}