diff options
| author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2016-11-21 21:18:13 +0200 |
|---|---|---|
| committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2016-11-21 21:18:13 +0200 |
| commit | fb0355fdbae173c4c5720dd25334f9f5e5304fb2 (patch) | |
| tree | 2f0f4c6c7946cdf5baa3bc2f60d8954d6927d4a2 /indra/newview/llsidepanelinventory.cpp | |
| parent | fc72e2d95f1b8dc36246823afe09cceee5f352c3 (diff) | |
| parent | 420b1c9429d36d75ee3c5de85b37f47bc207a122 (diff) | |
Merged in Ansariel/storm-2141
Diffstat (limited to 'indra/newview/llsidepanelinventory.cpp')
| -rw-r--r-- | indra/newview/llsidepanelinventory.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp index 6bcae1e858..c6a0198afd 100644 --- a/indra/newview/llsidepanelinventory.cpp +++ b/indra/newview/llsidepanelinventory.cpp @@ -34,6 +34,7 @@ #include "llbutton.h" #include "lldate.h" #include "llfirstuse.h" +#include "llfloaterreg.h" #include "llfloatersidepanelcontainer.h" #include "llfoldertype.h" #include "llfolderview.h" @@ -731,3 +732,16 @@ std::set<LLFolderViewItem*> LLSidepanelInventory::getInboxSelectionList() return inventory_selected_uuids; } + +void LLSidepanelInventory::cleanup() +{ + LLFloaterReg::const_instance_list_t& inst_list = LLFloaterReg::getFloaterList("inventory"); + for (LLFloaterReg::const_instance_list_t::const_iterator iter = inst_list.begin(); iter != inst_list.end();) + { + LLFloaterSidePanelContainer* iv = dynamic_cast<LLFloaterSidePanelContainer*>(*iter++); + if (iv) + { + iv->cleanup(); + } + } +} |
