Skip to content
Snippets Groups Projects
Commit 8089e12b authored by Leyla Farazha's avatar Leyla Farazha
Browse files

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
parent 733e86c1
No related branches found
No related tags found
No related merge requests found
...@@ -2177,8 +2177,11 @@ void LLIMFloater::onFocusLost() ...@@ -2177,8 +2177,11 @@ void LLIMFloater::onFocusLost()
// (hence we are no longer focused) // (hence we are no longer focused)
if (isDocked()) if (isDocked())
{ {
// app not quitting LLIMFloater* floater = LLFloaterReg::getTypedInstance<LLIMFloater>("impanel", mSessionID);
closeFloater(false); if (floater)
{
floater->setVisible(false);
}
} }
} }
...@@ -2214,7 +2217,7 @@ LLIMFloater* LLIMFloater::show(const LLUUID& session_id) ...@@ -2214,7 +2217,7 @@ LLIMFloater* LLIMFloater::show(const LLUUID& session_id)
iter != inst_list.end(); ++iter) iter != inst_list.end(); ++iter)
{ {
LLIMFloater* floater = dynamic_cast<LLIMFloater*>(*iter); LLIMFloater* floater = dynamic_cast<LLIMFloater*>(*iter);
if (floater) if (floater && floater->isDocked())
{ {
floater->setVisible(false); floater->setVisible(false);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment