diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp index 0b4d68da2b..bf85f002db 100755 --- a/indra/newview/llsidepanelinventory.cpp +++ b/indra/newview/llsidepanelinventory.cpp @@ -64,7 +64,6 @@ #ifdef OPENSIM #include "llviewernetwork.h" #endif // OPENSIM -#include "fscommon.h" static LLPanelInjector t_inventory("sidepanel_inventory"); @@ -134,10 +133,11 @@ LLSidepanelInventory::LLSidepanelInventory() LLSidepanelInventory::~LLSidepanelInventory() { // FIRE-17603: Received Items button sometimes vanishing - if (!FSCommon::isLegacySkin()) + //LLLayoutPanel* inbox_layout_panel = getChild(INBOX_LAYOUT_PANEL_NAME); + LLLayoutPanel* inbox_layout_panel = findChild(INBOX_LAYOUT_PANEL_NAME); + if (inbox_layout_panel) { // - LLLayoutPanel* inbox_layout_panel = getChild(INBOX_LAYOUT_PANEL_NAME); // Save the InventoryMainPanelHeight in settings per account gSavedPerAccountSettings.setS32("InventoryInboxHeight", inbox_layout_panel->getTargetDim()); @@ -233,10 +233,11 @@ BOOL LLSidepanelInventory::postBuild() // Received items inbox setup { // FIRE-17603: Received Items button sometimes vanishing - if (!FSCommon::isLegacySkin()) + //LLLayoutStack* inv_stack = getChild(INVENTORY_LAYOUT_STACK_NAME); + LLLayoutStack* inv_stack = findChild(INVENTORY_LAYOUT_STACK_NAME); + if (inv_stack) { // - LLLayoutStack* inv_stack = getChild(INVENTORY_LAYOUT_STACK_NAME); // Set up button states and callbacks LLButton * inbox_button = getChild(INBOX_BUTTON_NAME);