Fix adding notifications to the list for the notifications floater. From Nicky Dasmijn, fixes FIRE-3593.

meow-7.2.2
Tonya Souther 2011-10-14 15:04:55 -05:00
parent 1f81b1e5c2
commit dbcf991815
1 changed files with 8 additions and 1 deletions

View File

@ -486,7 +486,7 @@ void LLNotificationWellWindow::addItem(LLSysWellItem::Params p)
return;
LLSysWellItem* new_item = new LLSysWellItem(p);
if (mMessageList->addItem(new_item, value, ADD_TOP, mUpdateLocked))
if (mMessageList->addItem(new_item, value, ADD_TOP, !mUpdateLocked))
{
if( !mUpdateLocked )
{
@ -528,7 +528,14 @@ void LLNotificationWellWindow::unlockWindowUpdate()
{
mUpdateLocked = false;
mSysWellChiclet->updateWidget(isWindowEmpty());
// Let the list rearrange itself. This is normally called during addItem if the window is not locked.
LLSD oNotify;
oNotify["rearrange"] = 1;
mMessageList->notify( oNotify );
reshapeWindow();
}
//////////////////////////////////////////////////////////////////////////