#endif
#if defined(__WXMAC__)
- #include "wx/mac/private.h" // includes mac headers
+ #include "wx/osx/private.h" // includes mac headers
#endif
#ifdef __WXMSW__
{
// 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)