summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2009-12-10 10:37:58 -0500
committerLoren Shih <seraph@lindenlab.com>2009-12-10 10:37:58 -0500
commite2360f3d399427e28be477b6934440391cda43e8 (patch)
tree4de0b3ab99b4b398abe2e05fcb2d800d9a184c62
parentac4a6c93f08a987303dc049b5d8a1ea2342c6397 (diff)
EXT-3355 : InventorYSP no longer auto-opens
Fixed merge from changeset: 156496ce7d3f to restore my original getActiveInventoryPanel code.
-rw-r--r--indra/newview/llinventorypanel.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp
index 4cbf27b725..92b9dc427f 100644
--- a/indra/newview/llinventorypanel.cpp
+++ b/indra/newview/llinventorypanel.cpp
@@ -903,13 +903,10 @@ LLInventoryPanel* LLInventoryPanel::getActiveInventoryPanel(BOOL auto_open)
if (!auto_open) return NULL;
// D. Open the inventory side panel and use that.
- LLSideTray *side_tray = LLSideTray::getInstance();
+ LLSD key;
LLSidepanelInventory *sidepanel_inventory =
- dynamic_cast<LLSidepanelInventory *>(side_tray->getPanel("sidepanel_inventory"));
-
- // Use the inventory side panel only if it is already active.
- // Activating it may unexpectedly switch off the currently active tab in some cases.
- if (sidepanel_inventory && (LLPanel*)side_tray->getActiveTab() == (LLPanel*)sidepanel_inventory)
+ dynamic_cast<LLSidepanelInventory *>(LLSideTray::getInstance()->showPanel("sidepanel_inventory", key));
+ if (sidepanel_inventory)
{
return sidepanel_inventory->getActivePanel();
}