Skip to content

Commit 4c968a8

Browse files
authored
Fix calling LLFloaterPreference::setPanelVisibility resulting in selecting the 1st tab (#3066)
1 parent e028ae4 commit 4c968a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

indra/newview/llfloaterpreference.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,9 @@ void LLFloaterPreference::setPanelVisibility(const LLSD& name, bool visible)
19881988
LLPanel * panel = tab_containerp->getPanelByName(name.asStringRef());
19891989
if (NULL != panel)
19901990
{
1991+
auto current_tab = tab_containerp->getCurrentPanel();
19911992
tab_containerp->setTabVisibility(panel, visible);
1993+
tab_containerp->selectTabPanel(current_tab);
19921994
}
19931995
}
19941996

0 commit comments

Comments
 (0)