summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-12-07 23:16:36 -0800
committerMerov Linden <merov@lindenlab.com>2014-12-07 23:16:36 -0800
commitb6bda882afcf1afcd36b611a0b41209304eb7dab (patch)
tree2f5db2c727a6a5d6e2f388c8a925b361d52c3020
parent4fd175bc314eda71f78670fbb21357ad5ccc33ae (diff)
DD-289 : Prevent building panels twice within each tab
-rwxr-xr-xindra/newview/llfloatermarketplacelistings.cpp8
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