MAINT-3977 FIXED Object does not display newly added contents if it was edited that session and you teleported to another region and back and then added new contents.

master
andreykproductengine 2014-05-06 17:21:18 +03:00
parent afcfc40b5f
commit 4e0d3bdd4d
5 changed files with 20 additions and 3 deletions

View File

@ -888,6 +888,9 @@ void LLFloaterTools::onClose(bool app_quitting)
// hide the advanced object weights floater
LLFloaterReg::hideInstance("object_weights");
// prepare content for next call
mPanelContents->clearContents();
}
void click_popup_info(void*)

View File

@ -141,6 +141,13 @@ void LLPanelContents::refresh()
}
}
void LLPanelContents::clearContents()
{
if (mPanelInventoryObject)
{
mPanelInventoryObject->clearInventoryTask();
}
}
//

View File

@ -49,6 +49,7 @@ public:
virtual ~LLPanelContents();
void refresh();
void clearContents();
static void onClickNewScript(void*);

View File

@ -1862,14 +1862,19 @@ void LLPanelObjectInventory::refresh()
}
if(!has_inventory)
{
mTaskUUID = LLUUID::null;
removeVOInventoryListener();
clearContents();
clearInventoryTask();
}
mInventoryViewModel.setTaskID(mTaskUUID);
//llinfos << "LLPanelObjectInventory::refresh() " << mTaskUUID << llendl;
}
void LLPanelObjectInventory::clearInventoryTask()
{
mTaskUUID = LLUUID::null;
removeVOInventoryListener();
clearContents();
}
void LLPanelObjectInventory::removeSelectedItem()
{
if(mFolders)

View File

@ -62,6 +62,7 @@ public:
void refresh();
const LLUUID& getTaskUUID() { return mTaskUUID;}
void clearInventoryTask();
void removeSelectedItem();
void startRenamingSelectedItem();