diff options
author | Alexei Arabadji <aarabadji@productengine.com> | 2010-01-18 18:44:23 +0200 |
---|---|---|
committer | Alexei Arabadji <aarabadji@productengine.com> | 2010-01-18 18:44:23 +0200 |
commit | 7165bb86be059540139d936e930a8b09556d040a (patch) | |
tree | 3f0c40b211b9f695aa4da4a7d3f637a9f054a62e /indra | |
parent | fe37c59940d81db6f95b842da1b14b67cb9451d6 (diff) |
fixed EXT-4214 “Notifications counter can be negative”,
added check to avoid deleting closed toasts;
--HG--
branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llscreenchannel.cpp | 5 |
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); |