Skip to content
Snippets Groups Projects
Commit c272809a authored by Mnikolenko ProductEngine's avatar Mnikolenko ProductEngine
Browse files

CHUI-867 FIXED Set focus to Session floater(if it is torn off) after clicking...

CHUI-867 FIXED Set focus to Session floater(if it is torn off) after clicking appropriate conversation item.
parent 706200e2
No related branches found
No related tags found
No related merge requests found
......@@ -270,6 +270,24 @@ BOOL LLConversationViewSession::handleMouseDown( S32 x, S32 y, MASK mask )
return result;
}
BOOL LLConversationViewSession::handleMouseUp( S32 x, S32 y, MASK mask )
{
BOOL result = LLFolderViewFolder::handleMouseUp(x, y, mask);
if(result && getRoot())
{
LLConversationItem* item = dynamic_cast<LLConversationItem *>(getViewModelItem());
LLUUID session_id = item? item->getUUID() : LLUUID();
LLFloaterIMSessionTab* session_floater = LLFloaterIMSessionTab::findConversation(session_id);
if(!session_floater->getHost() && !session_floater->hasFocus())
{
session_floater->setFocus(true);
}
}
return result;
}
BOOL LLConversationViewSession::handleRightMouseDown( S32 x, S32 y, MASK mask )
{
BOOL result = LLFolderViewFolder::handleRightMouseDown(x, y, mask);
......
......@@ -69,6 +69,7 @@ class LLConversationViewSession : public LLFolderViewFolder
/*virtual*/ void draw();
/*virtual*/ BOOL handleMouseDown( S32 x, S32 y, MASK mask );
/*virtual*/ BOOL handleRightMouseDown( S32 x, S32 y, MASK mask );
/*virtual*/ BOOL handleMouseUp( S32 x, S32 y, MASK mask );
/*virtual*/ S32 arrange(S32* width, S32* height);
......
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