diff options
author | Merov Linden <merov@lindenlab.com> | 2012-06-18 22:51:33 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-06-18 22:51:33 -0700 |
commit | b882fe3b8dde9338c092922672015f975ca09587 (patch) | |
tree | 5e5b05408d24b9a71bf6f360ee35b897ef26283f /indra/newview | |
parent | 06f142e974854854c91988b6a8bc5c6005a40731 (diff) |
CHUI-146 : Refocus on the first conversation when closing another conversation, don't let focus falls out
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llimfloatercontainer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llimfloatercontainer.cpp b/indra/newview/llimfloatercontainer.cpp index bedf3315e8..04fb2f3b9a 100644 --- a/indra/newview/llimfloatercontainer.cpp +++ b/indra/newview/llimfloatercontainer.cpp @@ -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; } |