CHUI-616 (Left Click on participant name in torn off conference moves focus to conversation floater)
parent
034143225b
commit
f40ee4792d
|
|
@ -547,27 +547,6 @@ void LLConversationViewParticipant::onMouseLeave(S32 x, S32 y, MASK mask)
|
|||
LLFolderViewItem::onMouseLeave(x, y, mask);
|
||||
}
|
||||
|
||||
BOOL LLConversationViewParticipant::handleMouseDown( S32 x, S32 y, MASK mask )
|
||||
{
|
||||
LLConversationItem* item = NULL;
|
||||
LLConversationViewSession* session_widget =
|
||||
dynamic_cast<LLConversationViewSession *>(this->getParentFolder());
|
||||
if (session_widget)
|
||||
{
|
||||
item = dynamic_cast<LLConversationItem*>(session_widget->getViewModelItem());
|
||||
}
|
||||
LLUUID session_id = item? item->getUUID() : LLUUID();
|
||||
BOOL result = LLFolderViewItem::handleMouseDown(x, y, mask);
|
||||
|
||||
if(result)
|
||||
{
|
||||
(LLFloaterReg::getTypedInstance<LLFloaterIMContainer>("im_container"))->
|
||||
selectConversationPair(session_id, false);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
S32 LLConversationViewParticipant::getLabelXPos()
|
||||
{
|
||||
return getIndentation() + mAvatarIcon->getRect().getWidth() + mIconPad;
|
||||
|
|
|
|||
|
|
@ -132,8 +132,6 @@ public:
|
|||
void addToFolder(LLFolderViewFolder* folder);
|
||||
void addToSession(const LLUUID& session_id);
|
||||
|
||||
/*virtual*/ BOOL handleMouseDown( S32 x, S32 y, MASK mask );
|
||||
|
||||
void onMouseEnter(S32 x, S32 y, MASK mask);
|
||||
void onMouseLeave(S32 x, S32 y, MASK mask);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue