diff options
author | mberezhnoy <mberezhnoy@productengine.com> | 2013-03-12 07:39:00 +0200 |
---|---|---|
committer | mberezhnoy <mberezhnoy@productengine.com> | 2013-03-12 07:39:00 +0200 |
commit | cca679e0d66caf0aa49a77a89f821f923d4ead59 (patch) | |
tree | 84d8e15d3422849305c65774b823758e56d7d085 /indra/newview/llconversationview.cpp | |
parent | 40f61ae60091909bae8229b7d0496154a87fefbf (diff) | |
parent | 130c11c9fe9edc315229f30c338698f0463d0ee4 (diff) |
merge
Diffstat (limited to 'indra/newview/llconversationview.cpp')
-rwxr-xr-x | indra/newview/llconversationview.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index 85c9a11b43..956abcd586 100755 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -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); - } } } |