Skip to content
Snippets Groups Projects
Commit 4965a0de authored by maksymsproductengine's avatar maksymsproductengine
Browse files

CHUI-966 FIXED WARNING: LLSysWellWindow::removeItemByID: Unable to remove...

CHUI-966 FIXED WARNING: LLSysWellWindow::removeItemByID: Unable to remove notification given when deleting notification
parent 430af6f7
No related branches found
No related tags found
No related merge requests found
...@@ -423,9 +423,18 @@ void LLNotificationWellWindow::onItemClick(LLSysWellItem* item) ...@@ -423,9 +423,18 @@ void LLNotificationWellWindow::onItemClick(LLSysWellItem* item)
void LLNotificationWellWindow::onItemClose(LLSysWellItem* item) void LLNotificationWellWindow::onItemClose(LLSysWellItem* item)
{ {
LLUUID id = item->getID(); LLUUID id = item->getID();
removeItemByID(id);
if(mChannel) if(mChannel)
{
// removeItemByID() is invoked from killToastByNotificationID() and item will removed;
mChannel->killToastByNotificationID(id); 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 ) void LLNotificationWellWindow::onAdd( LLNotificationPtr notify )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment