From ca873b3664e0eefb7e49f91c7dbf4aa81a4c1087 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 18 Apr 2018 22:54:56 +0200 Subject: [PATCH] FIRE-22509: Only apply inbox filter on primary inventory window --- indra/newview/llpanelmaininventory.cpp | 34 +++++++++++++++++++++----- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 1fb279814c..34c522b5dd 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -691,15 +691,26 @@ void LLPanelMainInventory::onClearSearch() } mFilterSubString = ""; - LLSidepanelInventory * sidepanel_inventory = LLFloaterSidePanelContainer::getPanel("inventory"); - if (sidepanel_inventory) + // FIRE-22509: Only apply inbox filter on primary inventory window + //LLSidepanelInventory * sidepanel_inventory = LLFloaterSidePanelContainer::getPanel("inventory"); + //if (sidepanel_inventory) + //{ + // LLPanelMarketplaceInbox* inbox_panel = sidepanel_inventory->getChild("marketplace_inbox"); + // if (inbox_panel) + // { + // inbox_panel->onClearSearch(); + // } + //} + LLFloater* inv_floater = getParentByType(); + if (inv_floater) { - LLPanelMarketplaceInbox* inbox_panel = sidepanel_inventory->getChild("marketplace_inbox"); + LLPanelMarketplaceInbox* inbox_panel = inv_floater->findChild("marketplace_inbox"); if (inbox_panel) { inbox_panel->onClearSearch(); } } + // } void LLPanelMainInventory::onFilterEdit(const std::string& search_string ) @@ -754,15 +765,26 @@ void LLPanelMainInventory::onFilterEdit(const std::string& search_string ) } // Separate search for inventory tabs from Satomi Ahn (FIRE-913 & FIRE-6862) - LLSidepanelInventory * sidepanel_inventory = LLFloaterSidePanelContainer::getPanel("inventory"); - if (sidepanel_inventory) + // FIRE-22509: Only apply inbox filter on primary inventory window + //LLSidepanelInventory * sidepanel_inventory = LLFloaterSidePanelContainer::getPanel("inventory"); + //if (sidepanel_inventory) + //{ + // LLPanelMarketplaceInbox* inbox_panel = sidepanel_inventory->getChild("marketplace_inbox"); + // if (inbox_panel) + // { + // inbox_panel->onFilterEdit(search_string); + // } + //} + LLFloater* inv_floater = getParentByType(); + if (inv_floater) { - LLPanelMarketplaceInbox* inbox_panel = sidepanel_inventory->getChild("marketplace_inbox"); + LLPanelMarketplaceInbox* inbox_panel = inv_floater->findChild("marketplace_inbox"); if (inbox_panel) { inbox_panel->onFilterEdit(search_string); } } + // } // Filter dropdown