fix for normal EXT-3252 IM well closes if the lower IM session has been closed

--HG--
branch : product-engine
master
Yuri Chebotarev 2009-12-15 13:22:09 +02:00
parent c157c1176a
commit 50792b7c2a
1 changed files with 11 additions and 0 deletions

View File

@ -752,6 +752,13 @@ void LLIMWellWindow::addIMRow(const LLUUID& sessionId, S32 chicletCounter,
//---------------------------------------------------------------------------------
void LLIMWellWindow::delIMRow(const LLUUID& sessionId)
{
//fix for EXT-3252
//without this line LLIMWellWindow receive onFocusLost
//and hide itself. It was becaue somehow LLIMChicklet was in focus group for
//LLIMWellWindow...
//But I didn't find why this happen..
gFocusMgr.clearLastFocusForGroup(this);
if (mMessageList->removeItemByValue(sessionId))
{
handleItemRemoved(IT_INSTANT_MESSAGE);
@ -771,6 +778,10 @@ void LLIMWellWindow::delIMRow(const LLUUID& sessionId)
{
setVisible(FALSE);
}
else
{
setFocus(true);
}
}
void LLIMWellWindow::addObjectRow(const LLUUID& object_id, bool new_message/* = false*/)