summaryrefslogtreecommitdiff
path: root/indra/newview/llsyswellwindow.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2013-08-26 14:57:54 -0700
committerGraham Linden <graham@lindenlab.com>2013-08-26 14:57:54 -0700
commitc50f44e04ed4c14dd19b18421878cc0094cee9b2 (patch)
treebd7418ba39e5aeac26c31df3b5dd7d4e4b676e73 /indra/newview/llsyswellwindow.cpp
parentbf55d287db305907b83909c09bc5842a5a7a709f (diff)
parent6e1138585bf745f73f0bb99ca62f77eeb273f1e4 (diff)
Merge viewer-release 3.6.5
Diffstat (limited to 'indra/newview/llsyswellwindow.cpp')
-rwxr-xr-xindra/newview/llsyswellwindow.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llsyswellwindow.cpp b/indra/newview/llsyswellwindow.cpp
index e92bd766ca..1a3add2bfb 100755
--- a/indra/newview/llsyswellwindow.cpp
+++ b/indra/newview/llsyswellwindow.cpp
@@ -423,9 +423,18 @@ void LLNotificationWellWindow::onItemClick(LLSysWellItem* item)
void LLNotificationWellWindow::onItemClose(LLSysWellItem* item)
{
LLUUID id = item->getID();
- removeItemByID(id);
+
if(mChannel)
+ {
+ // removeItemByID() is invoked from killToastByNotificationID() and item will removed;
mChannel->killToastByNotificationID(id);
+ }
+ else
+ {
+ // removeItemByID() should be called one time for each item to remove it from notification well
+ removeItemByID(id);
+ }
+
}
void LLNotificationWellWindow::onAdd( LLNotificationPtr notify )