Skip to content
Snippets Groups Projects
Commit a1fb4a1c authored by Cho's avatar Cho
Browse files

merging

parents 5957f1da 228d868c
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,15 @@ LLConversationViewSession::~LLConversationViewSession()
void LLConversationViewSession::setFlashState(bool flash_state)
{
if (flash_state && !mFlashStateOn)
{
// flash chat toolbar button if scrolled out of sight (because flashing will not be visible)
if (mContainer->isScrolledOutOfSight(this))
{
gToolBarView->flashCommand(LLCommandId("chat"), true);
}
}
mFlashStateOn = flash_state;
mFlashStarted = false;
mFlashTimer->stopFlashing();
......@@ -115,12 +124,6 @@ void LLConversationViewSession::startFlashing()
{
mFlashStarted = true;
mFlashTimer->startFlashing();
// flash chat toolbar button if scrolled out of sight (because flashing will not be visible)
if (mContainer->isScrolledOutOfSight(this))
{
gToolBarView->flashCommand(LLCommandId("chat"), true);
}
}
}
......
......@@ -1881,6 +1881,9 @@ bool LLFloaterIMContainer::isScrolledOutOfSight(LLConversationViewSession* conve
{
llassert(conversation_item_widget != NULL);
// make sure the widget is actually in the right spot first
mConversationsRoot->arrange(NULL, NULL);
// check whether the widget is in the visible portion of the scroll container
LLRect widget_rect;
conversation_item_widget->localRectToOtherView(conversation_item_widget->getLocalRect(), &widget_rect, mConversationsRoot);
......
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