Skip to content
Snippets Groups Projects
Commit b882fe3b authored by Merov Linden's avatar Merov Linden
Browse files

CHUI-146 : Refocus on the first conversation when closing another...

CHUI-146 : Refocus on the first conversation when closing another conversation, don't let focus falls out
parent 06f142e9
No related branches found
No related tags found
No related merge requests found
......@@ -405,6 +405,15 @@ void LLIMFloaterContainer::removeConversationListItem(const LLUUID& session_id)
panel_rect.getWidth(),
panel_rect.getHeight() - item_height*(index+1)));
}
// Don't let the focus fall IW, select and refocus on the first conversation in the list
setFocus(TRUE);
conversations_items_map::iterator item_it = mConversationsItems.begin();
if (item_it != mConversationsItems.end())
{
LLConversationItem* item = item_it->second;
item->selectItem();
}
return;
}
......
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