summaryrefslogtreecommitdiff
path: root/indra/newview/llsyswellwindow.cpp
diff options
context:
space:
mode:
authorsimon <none@none>2013-08-26 15:45:09 -0700
committersimon <none@none>2013-08-26 15:45:09 -0700
commit90d1c5b3676fe4e8ea8668b41fdf92613d5f102d (patch)
tree8d5afd9678fd44444bcc7b5d311b5cfb7abe5217 /indra/newview/llsyswellwindow.cpp
parentac2dc34ed0abbac8d5a8eb7f887037fe387c6a7a (diff)
parent27d637d0f14fdfff496256222dc1343d2d7ee9ae (diff)
Merge downstream code for CHUIStorm
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 )