git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3078
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Centre(wxCENTER_FRAME | wxBOTH);
if(m_disableParentOnly)
Centre(wxCENTER_FRAME | wxBOTH);
if(m_disableParentOnly)
- m_parent->Enable(FALSE);
+ {
+ if(m_parent) m_parent->Enable(FALSE);
+ }
else
wxEnableTopLevelWindows(FALSE);
else
wxEnableTopLevelWindows(FALSE);
wxProgressDialog::~wxProgressDialog()
{
if ( m_disableParentOnly )
wxProgressDialog::~wxProgressDialog()
{
if ( m_disableParentOnly )
- m_parent->Enable(TRUE);
+ {
+ if(m_parent) m_parent->Enable(TRUE);
+ }
else
wxEnableTopLevelWindows(TRUE);
if (m_time) delete m_time;
else
wxEnableTopLevelWindows(TRUE);
if (m_time) delete m_time;