From 7165bb86be059540139d936e930a8b09556d040a Mon Sep 17 00:00:00 2001 From: Alexei Arabadji Date: Mon, 18 Jan 2010 18:44:23 +0200 Subject: fixed EXT-4214 “Notifications counter can be negative”, added check to avoid deleting closed toasts; MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : product-engine --- indra/newview/llscreenchannel.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.3