Fixed a crash when removing TreeView from Box
Signed-off-by: jiajia_deng <2894220@gmail.com>
This commit is contained in:
parent
a59b15c43a
commit
c627eff95d
@ -248,7 +248,7 @@ void TreeView::RemoveAll()
|
|||||||
void TreeView::SetWindow(Window* pManager, Box* pParent, bool bInit)
|
void TreeView::SetWindow(Window* pManager, Box* pParent, bool bInit)
|
||||||
{
|
{
|
||||||
ListBox::SetWindow(pManager, pParent, bInit);
|
ListBox::SetWindow(pManager, pParent, bInit);
|
||||||
m_rootNode->SetWindow(pManager, pParent, bInit);
|
if (NULL != pParent) m_rootNode->SetWindow(pManager, pParent, bInit);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user