Skip to content
Snippets Groups Projects
Commit 4e0d3bdd authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-3977 FIXED Object does not display newly added contents if it was edited...

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.
parent afcfc40b
No related branches found
No related tags found
No related merge requests found
...@@ -888,6 +888,9 @@ void LLFloaterTools::onClose(bool app_quitting) ...@@ -888,6 +888,9 @@ void LLFloaterTools::onClose(bool app_quitting)
// hide the advanced object weights floater // hide the advanced object weights floater
LLFloaterReg::hideInstance("object_weights"); LLFloaterReg::hideInstance("object_weights");
// prepare content for next call
mPanelContents->clearContents();
} }
void click_popup_info(void*) void click_popup_info(void*)
......
...@@ -141,6 +141,13 @@ void LLPanelContents::refresh() ...@@ -141,6 +141,13 @@ void LLPanelContents::refresh()
} }
} }
void LLPanelContents::clearContents()
{
if (mPanelInventoryObject)
{
mPanelInventoryObject->clearInventoryTask();
}
}
// //
......
...@@ -49,6 +49,7 @@ class LLPanelContents : public LLPanel ...@@ -49,6 +49,7 @@ class LLPanelContents : public LLPanel
virtual ~LLPanelContents(); virtual ~LLPanelContents();
void refresh(); void refresh();
void clearContents();
static void onClickNewScript(void*); static void onClickNewScript(void*);
......
...@@ -1862,14 +1862,19 @@ void LLPanelObjectInventory::refresh() ...@@ -1862,14 +1862,19 @@ void LLPanelObjectInventory::refresh()
} }
if(!has_inventory) if(!has_inventory)
{ {
mTaskUUID = LLUUID::null; clearInventoryTask();
removeVOInventoryListener();
clearContents();
} }
mInventoryViewModel.setTaskID(mTaskUUID); mInventoryViewModel.setTaskID(mTaskUUID);
//llinfos << "LLPanelObjectInventory::refresh() " << mTaskUUID << llendl; //llinfos << "LLPanelObjectInventory::refresh() " << mTaskUUID << llendl;
} }
void LLPanelObjectInventory::clearInventoryTask()
{
mTaskUUID = LLUUID::null;
removeVOInventoryListener();
clearContents();
}
void LLPanelObjectInventory::removeSelectedItem() void LLPanelObjectInventory::removeSelectedItem()
{ {
if(mFolders) if(mFolders)
......
...@@ -62,6 +62,7 @@ class LLPanelObjectInventory : public LLPanel, public LLVOInventoryListener ...@@ -62,6 +62,7 @@ class LLPanelObjectInventory : public LLPanel, public LLVOInventoryListener
void refresh(); void refresh();
const LLUUID& getTaskUUID() { return mTaskUUID;} const LLUUID& getTaskUUID() { return mTaskUUID;}
void clearInventoryTask();
void removeSelectedItem(); void removeSelectedItem();
void startRenamingSelectedItem(); void startRenamingSelectedItem();
......
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