CHUI-545: Minor logic fix, inside ::switchIndicator(), make sure that in the case that the parent is visible and the parent makes the visibility changes...that mIndicatorToggled becomes false because the parent has already made the visiblity changes.

meow-7.2.2
Gilbert Gonzales 2012-12-12 17:43:15 -08:00
parent 2a9056f0b7
commit 37e95e8379
1 changed files with 2 additions and 0 deletions

View File

@ -313,6 +313,8 @@ void LLOutputMonitorCtrl::switchIndicator(bool switch_on)
if (getParent() && getParent()->isInVisibleChain())
{
notifyParentVisibilityChanged();
//Ignore toggled state in case it was set when parent visibility was hidden
mIndicatorToggled = false;
}
else
{