summaryrefslogtreecommitdiff
path: root/indra/newview/llsyswellwindow.cpp
diff options
context:
space:
mode:
authorsimon <none@none>2013-08-26 14:43:23 -0700
committersimon <none@none>2013-08-26 14:43:23 -0700
commit27d637d0f14fdfff496256222dc1343d2d7ee9ae (patch)
tree32b0f244e480cfddaa67fa89df40ad7c824adfc9 /indra/newview/llsyswellwindow.cpp
parent3f5e6280dbee3414d464a96a8d9d037c30adb123 (diff)
parent6e1138585bf745f73f0bb99ca62f77eeb273f1e4 (diff)
Merge downstream code from CHUIStorm release
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 )