VWR-21060 FIXED showing the panel in detached tab if it was in minimized state and was called via keyboard shortcut.

meow-7.2.2
Sergei Litovchuk 2010-09-03 00:32:19 +03:00
parent c2935e40a6
commit 15ca7e43eb
1 changed files with 3 additions and 1 deletions

View File

@ -1015,7 +1015,9 @@ void LLSideTray::togglePanel(LLPanel* &sub_panel, const std::string& panel_name,
if(!sub_panel)
return;
if (sub_panel->isInVisibleChain())
// If a panel is visible and attached to Side Tray (has LLSideTray among its ancestors)
// it should be toggled off by collapsing Side Tray.
if (sub_panel->isInVisibleChain() && sub_panel->hasAncestor(this))
{
LLSideTray::getInstance()->collapseSideBar();
}