diff options
author | Merov Linden <merov@lindenlab.com> | 2014-12-07 23:16:36 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-12-07 23:16:36 -0800 |
commit | b6bda882afcf1afcd36b611a0b41209304eb7dab (patch) | |
tree | 2f5db2c727a6a5d6e2f388c8a925b361d52c3020 | |
parent | 4fd175bc314eda71f78670fbb21357ad5ccc33ae (diff) |
DD-289 : Prevent building panels twice within each tab
-rwxr-xr-x | indra/newview/llfloatermarketplacelistings.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp index 54afa53cd3..9acacbe674 100755 --- a/indra/newview/llfloatermarketplacelistings.cpp +++ b/indra/newview/llfloatermarketplacelistings.cpp @@ -106,13 +106,7 @@ void LLPanelMarketplaceListings::buildAllPanels() LLInventoryPanel* LLPanelMarketplaceListings::buildInventoryPanel(const std::string& childname, const std::string& filename) { LLTabContainer* tabs_panel = getChild<LLTabContainer>("marketplace_filter_tabs"); - LLInventoryPanel* panel = getChild<LLInventoryPanel>(childname); - if (panel) - { - tabs_panel->removeTabPanel(panel); - delete panel; - } - panel = LLUICtrlFactory::createFromFile<LLInventoryPanel>(filename, tabs_panel, LLInventoryPanel::child_registry_t::instance()); + LLInventoryPanel* panel = LLUICtrlFactory::createFromFile<LLInventoryPanel>(filename, tabs_panel, LLInventoryPanel::child_registry_t::instance()); llassert(panel != NULL); // Set sort order and callbacks |