summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Arabadji <aarabadji@productengine.com>2010-07-08 10:48:17 +0300
committerAlexei Arabadji <aarabadji@productengine.com>2010-07-08 10:48:17 +0300
commit27b3005b788b969005f8b942024aacd29d16a674 (patch)
tree019a462681eb47d88db2c611a774aa31b3049764
parente595ea43be6745b2d1cf8b258d87548b7a19c2e7 (diff)
EXT-8218 FIXED Fixed crash in LLNotificationsUI::LLScreenChannel::redrawToasts method.
Details: Provided resetting hovered toast field in screen channel when toast destroyed along viewer logging out. reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/705/ --HG-- branch : product-engine
-rw-r--r--indra/newview/llscreenchannel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llscreenchannel.cpp b/indra/newview/llscreenchannel.cpp
index ef89c07c60..40c99edecd 100644
--- a/indra/newview/llscreenchannel.cpp
+++ b/indra/newview/llscreenchannel.cpp
@@ -297,6 +297,12 @@ void LLScreenChannel::onToastDestroyed(LLToast* toast)
{
mStoredToastList.erase(it);
}
+
+ // if destroyed toast is hovered - reset hovered
+ if (mHoveredToast == toast)
+ {
+ mHoveredToast = NULL;
+ }
}