Check for m_treeCtrl!=NULL, [ wxwindows-Patches-1953459 ] wxGenericDirCtrl::SetFocus crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -668,6 +668,7 @@ void wxGenericDirCtrl::SetFocus()
|
|||||||
{
|
{
|
||||||
// we don't need focus ourselves, give it to the tree so that the user
|
// we don't need focus ourselves, give it to the tree so that the user
|
||||||
// could navigate it
|
// could navigate it
|
||||||
|
if (m_treeCtrl)
|
||||||
m_treeCtrl->SetFocus();
|
m_treeCtrl->SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user