summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2012-10-15 16:06:02 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2012-10-15 16:06:02 -0700
commitd0f9600f37a87b2d6c7a2c3cfbbc5d793e505872 (patch)
tree0ea80a3d8388db1b79c1a841cf7f1dedb8cd8cdb /indra
parent699e0a1e0b89e4d3c2d1342c821496c5699b8c52 (diff)
CHUI-380: Bug fix after merge. When selecting the participant of a conversation focus would be lost on the converstation floater. This was because focus would be set to the participant folder item. Resolution: Now delegate focus from the particiapnt folder item to the conversation floater.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llconversationview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp
index 637f30635e..b7ebb70e86 100755
--- a/indra/newview/llconversationview.cpp
+++ b/indra/newview/llconversationview.cpp
@@ -425,6 +425,7 @@ void LLConversationViewParticipant::selectItem()
{
LLConversationItem* vmi = this->getParentFolder() ? static_cast<LLConversationItem*>(this->getParentFolder()->getViewModelItem()) : NULL;
LLIMFloaterContainer* container = LLIMFloaterContainer::getInstance();
+ LLFloater* session_floater;
//Only execute when switching floaters (conversations)
if(vmi && vmi->getUUID() != container->getSelectedSession())
@@ -441,6 +442,12 @@ void LLConversationViewParticipant::selectItem()
LLIMFloater::show(vmi->getUUID());
}
}
+ //Focus the current conversation floater (it is already visible so just focus it)
+ else
+ {
+ session_floater = LLIMConversation::getConversation(vmi->getUUID());
+ session_floater->setFocus(TRUE);
+ }
LLFolderViewItem::selectItem();
}