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);