diff options
Diffstat (limited to 'indra/newview/llpanelteleporthistory.cpp')
-rw-r--r-- | indra/newview/llpanelteleporthistory.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llpanelteleporthistory.cpp b/indra/newview/llpanelteleporthistory.cpp index bed15df1ee..e71ddfb283 100644 --- a/indra/newview/llpanelteleporthistory.cpp +++ b/indra/newview/llpanelteleporthistory.cpp @@ -243,6 +243,7 @@ BOOL LLTeleportHistoryPanel::postBuild() { LLAccordionCtrlTab* tab = (LLAccordionCtrlTab*)*iter; tab->setRightMouseDownCallback(boost::bind(&LLTeleportHistoryPanel::onAccordionTabRightClick, this, _1, _2, _3, _4)); + tab->setDisplayChildren(false); mItemContainers.put(tab); @@ -255,6 +256,13 @@ BOOL LLTeleportHistoryPanel::postBuild() } } } + + // Open first 2 accordion tabs + if (mItemContainers.size() > 1) + mItemContainers.get(mItemContainers.size() - 1)->setDisplayChildren(true); + + if (mItemContainers.size() > 2) + mItemContainers.get(mItemContainers.size() - 2)->setDisplayChildren(true); } getChild<LLPanel>("bottom_panel")->childSetAction("gear_btn",boost::bind(&LLTeleportHistoryPanel::onGearButtonClicked, this)); |