summaryrefslogtreecommitdiff
path: root/indra/newview/llsidetray.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-09-16 19:55:55 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-09-16 19:55:55 +0100
commit395a5cbafff00aa90e0cd71891f9741c501e9824 (patch)
tree8a4e6ee30b901a2615ff71b6f9db8de2b25f1b86 /indra/newview/llsidetray.cpp
parent128bcffb62e050d9cbb84af859e45477e8d90ee8 (diff)
parent242206ea25a4685f1c7df977c8b5226c8aa42262 (diff)
merge
Diffstat (limited to 'indra/newview/llsidetray.cpp')
-rw-r--r--indra/newview/llsidetray.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llsidetray.cpp b/indra/newview/llsidetray.cpp
index b0914eee69..9ee504cc4c 100644
--- a/indra/newview/llsidetray.cpp
+++ b/indra/newview/llsidetray.cpp
@@ -568,8 +568,9 @@ void LLSideTray::toggleTabButton(LLSideTrayTab* tab)
{
LLButton* btn = it->second;
bool new_state = !btn->getToggleState();
- btn->setToggleState(new_state);
- btn->setImageOverlay( new_state ? tab->mImageSelected : tab->mImage );
+ btn->setToggleState(new_state);
+ // Only highlight the tab if side tray is expanded (STORM-157).
+ btn->setImageOverlay( new_state && !getCollapsed() ? tab->mImageSelected : tab->mImage );
}
}