summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Arabadji <aarabadji@productengine.com>2010-01-18 18:44:23 +0200
committerAlexei Arabadji <aarabadji@productengine.com>2010-01-18 18:44:23 +0200
commit7165bb86be059540139d936e930a8b09556d040a (patch)
tree3f0c40b211b9f695aa4da4a7d3f637a9f054a62e
parentfe37c59940d81db6f95b842da1b14b67cb9451d6 (diff)
fixed EXT-4214 “Notifications counter can be negative”,
added check to avoid deleting closed toasts; --HG-- branch : product-engine
-rw-r--r--indra/newview/llscreenchannel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llscreenchannel.cpp b/indra/newview/llscreenchannel.cpp
index 2eee7635a7..0adc9fc258 100644
--- a/indra/newview/llscreenchannel.cpp
+++ b/indra/newview/llscreenchannel.cpp
@@ -286,6 +286,11 @@ void LLScreenChannel::onToastFade(LLToast* toast)
//--------------------------------------------------------------------------
void LLScreenChannel::deleteToast(LLToast* toast)
{
+ if (toast->isDead())
+ {
+ return;
+ }
+
// send signal to observers about destroying of a toast
toast->mOnDeleteToastSignal(toast);