EXT-3619 : CRASH in xui preview tool when editing an inventory panel

Now checking if inventory is usable before checking if views are initialized.
master
Loren Shih 2009-12-21 18:31:19 -05:00
parent 65dfc74688
commit 04b63a67e6
1 changed files with 4 additions and 1 deletions

View File

@ -402,9 +402,12 @@ void LLInventoryPanel::modelChanged(U32 mask)
// static
void LLInventoryPanel::onIdle(void *userdata)
{
if (!gInventory.isInventoryUsable())
return;
LLInventoryPanel *self = (LLInventoryPanel*)userdata;
// Inventory just initialized, do complete build
if (!self->mViewsInitialized && gInventory.isInventoryUsable())
if (!self->mViewsInitialized)
{
self->initializeViews();
}