diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index c5f7a2a63e..8e4933700b 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -1625,10 +1625,12 @@ LLInventoryPanel* LLInventoryPanel::getActiveInventoryPanel(BOOL auto_open) void LLInventoryPanel::openInventoryPanelAndSetSelection(BOOL auto_open, const LLUUID& obj_id, BOOL main_panel) { LLInventoryPanel *active_panel; - if (main_panel) - { - LLFloaterSidePanelContainer::getPanel("inventory")->selectAllItemsPanel(); - } + // FIRE-22167: Make "Show in Main View" work properly + //if (main_panel) + //{ + // LLFloaterSidePanelContainer::getPanel("inventory")->selectAllItemsPanel(); + //} + // active_panel = LLInventoryPanel::getActiveInventoryPanel(auto_open); if (active_panel) @@ -1674,7 +1676,15 @@ void LLInventoryPanel::openInventoryPanelAndSetSelection(BOOL auto_open, const L } else { - LLFloater* floater_inventory = LLFloaterReg::getInstance("inventory"); + // FIRE-22167: Make "Show in Main View" work properly + //LLFloater* floater_inventory = LLFloaterReg::getInstance("inventory"); + if (main_panel) + { + active_panel->getParentByType()->selectFirstTab(); + active_panel = getActiveInventoryPanel(FALSE); + } + LLFloater* floater_inventory = active_panel->getParentByType(); + // if (floater_inventory) { floater_inventory->setFocus(TRUE);