bug fix for m_parent == NULL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-07-21 18:13:27 +00:00
parent f92722960b
commit e41bbc80bc

View File

@@ -198,7 +198,9 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
Centre(wxCENTER_FRAME | wxBOTH);
if(m_disableParentOnly)
m_parent->Enable(FALSE);
{
if(m_parent) m_parent->Enable(FALSE);
}
else
wxEnableTopLevelWindows(FALSE);
@@ -285,7 +287,9 @@ void wxProgressDialog::OnClose(wxCloseEvent& event)
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;