From d5a75fabdbc796c7869d80e8015b1bae3edad567 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 16 Jun 2018 17:12:04 +0200 Subject: [PATCH] FIRE-22506: Inventory search is slow in Vintage skin --- indra/newview/llpanelmaininventory.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 34c522b5dd..51edc3963d 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -701,10 +701,10 @@ void LLPanelMainInventory::onClearSearch() // inbox_panel->onClearSearch(); // } //} - LLFloater* inv_floater = getParentByType(); - if (inv_floater) + LLSidepanelInventory * sidepanel_inventory = getParentByType(); + if (sidepanel_inventory && sidepanel_inventory->getInboxPanel()) { - LLPanelMarketplaceInbox* inbox_panel = inv_floater->findChild("marketplace_inbox"); + LLPanelMarketplaceInbox* inbox_panel = sidepanel_inventory->getInboxPanel()->getParentByType(); if (inbox_panel) { inbox_panel->onClearSearch(); @@ -775,10 +775,10 @@ void LLPanelMainInventory::onFilterEdit(const std::string& search_string ) // inbox_panel->onFilterEdit(search_string); // } //} - LLFloater* inv_floater = getParentByType(); - if (inv_floater) + LLSidepanelInventory * sidepanel_inventory = getParentByType(); + if (sidepanel_inventory && sidepanel_inventory->getInboxPanel()) { - LLPanelMarketplaceInbox* inbox_panel = inv_floater->findChild("marketplace_inbox"); + LLPanelMarketplaceInbox* inbox_panel = sidepanel_inventory->getInboxPanel()->getParentByType(); if (inbox_panel) { inbox_panel->onFilterEdit(search_string);