X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a85ad1db05e7d940383fdf75671f1aa69dacbb42..a25484eb1391b53e6f0c1205af4b3a23183e512e:/src/generic/dirctrlg.cpp diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index 27ae4e40b1..b0f677fdff 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -668,7 +668,8 @@ void wxGenericDirCtrl::SetFocus() { // we don't need focus ourselves, give it to the tree so that the user // could navigate it - m_treeCtrl->SetFocus(); + if (m_treeCtrl) + m_treeCtrl->SetFocus(); } void wxGenericDirCtrl::OnBeginEditItem(wxTreeEvent &event)