diff options
author | Merov Linden <merov@lindenlab.com> | 2012-10-29 20:43:32 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-10-29 20:43:32 -0700 |
commit | a7a24dc2f9450e0d51e7110a7eb44e0f27a010db (patch) | |
tree | 296b5344b33734babfde6aeecb36af2e005ddc32 /indra/newview/llconversationview.cpp | |
parent | 480c3a1acb32e98d0d64aaf7bb70e4d61e6882f6 (diff) | |
parent | 1a1a0b91c0c4400ec3febac183124314f9226127 (diff) |
Pull merge from richard/viewer-chui
Diffstat (limited to 'indra/newview/llconversationview.cpp')
-rwxr-xr-x | indra/newview/llconversationview.cpp | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index 2d5665190f..3082284991 100755 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -438,28 +438,19 @@ void LLConversationViewParticipant::selectItem() LLIMFloaterContainer* container = LLIMFloaterContainer::getInstance(); LLFloater* session_floater; - //Only execute when switching floaters (conversations) - if(vmi && vmi->getUUID() != container->getSelectedSession()) + if(vmi) { - //When null, show the nearby chat conversation floater - if(vmi->getUUID().isNull()) - { - LLNearbyChat* nearbyChat = LLFloaterReg::findTypedInstance<LLNearbyChat>("nearby_chat"); - nearbyChat->show(); - } - //Otherwise, show the IM conversation floater - else + session_floater = LLIMConversation::getConversation(vmi->getUUID()); + + //Only execute when switching floaters (conversations) + if(vmi->getUUID() != container->getSelectedSession()) { - LLIMFloater::show(vmi->getUUID()); + container->selectFloater(session_floater); + // Store the active session + container->setSelectedSession(vmi->getUUID()); } - // Store the active session - container->setSelectedSession(vmi->getUUID()); - } - //Focus the current conversation floater (it is already visible so just focus it) - else - { - session_floater = LLIMConversation::getConversation(vmi->getUUID()); + //Redirect focus to the conversation floater session_floater->setFocus(TRUE); } |