From b6bda882afcf1afcd36b611a0b41209304eb7dab Mon Sep 17 00:00:00 2001 From: Merov Linden Date: Sun, 7 Dec 2014 23:16:36 -0800 Subject: DD-289 : Prevent building panels twice within each tab --- indra/newview/llfloatermarketplacelistings.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'indra') 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("marketplace_filter_tabs"); - LLInventoryPanel* panel = getChild(childname); - if (panel) - { - tabs_panel->removeTabPanel(panel); - delete panel; - } - panel = LLUICtrlFactory::createFromFile(filename, tabs_panel, LLInventoryPanel::child_registry_t::instance()); + LLInventoryPanel* panel = LLUICtrlFactory::createFromFile(filename, tabs_panel, LLInventoryPanel::child_registry_t::instance()); llassert(panel != NULL); // Set sort order and callbacks -- cgit v1.2.3