summaryrefslogtreecommitdiff
path: root/indra/newview/llsidetray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llsidetray.cpp')
-rw-r--r--indra/newview/llsidetray.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llsidetray.cpp b/indra/newview/llsidetray.cpp
index 2be0aa40d2..4db849c159 100644
--- a/indra/newview/llsidetray.cpp
+++ b/indra/newview/llsidetray.cpp
@@ -427,7 +427,16 @@ void LLSideTray::createButtons ()
void LLSideTray::onTabButtonClick(string name)
{
-
+ LLSideTrayTab* side_bar = getTab(name);
+
+ if(side_bar == mActiveTab)
+ {
+ if(mCollapsed)
+ expandSideBar();
+ else
+ collapseSideBar();
+ return;
+ }
selectTabByName (name);
if(mCollapsed)
expandSideBar();