Fixed a crash when removing TreeView from Box

Signed-off-by: jiajia_deng <2894220@gmail.com>
This commit is contained in:
jiajia_deng 2019-07-25 11:48:57 +08:00
parent a59b15c43a
commit c627eff95d

View File

@ -248,7 +248,7 @@ void TreeView::RemoveAll()
void TreeView::SetWindow(Window* pManager, Box* pParent, bool bInit)
{
ListBox::SetWindow(pManager, pParent, bInit);
m_rootNode->SetWindow(pManager, pParent, bInit);
if (NULL != pParent) m_rootNode->SetWindow(pManager, pParent, bInit);
}
}