Initialize wxGenericProgressDialog button members in Init() too.

wxGenericProgressDialog::m_btn{Abort,Skip} were not initialized neither which
resulted in crashes inside EnableAbort() which was called if the "Cancel"
button was pressed in a native MSW dialog but the dialog wasn't cancelled (and
hence the button needed to be reenabled).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2010-09-10 17:26:11 +00:00
parent 21a5e7e0a7
commit 3e4f133a43

View File

@ -114,6 +114,11 @@ void wxGenericProgressDialog::Init(wxWindow *parent, int style)
m_skip = false;
#if !defined(__SMARTPHONE__)
m_btnAbort =
m_btnSkip = NULL;
#endif
m_display_estimated =
m_last_timeupdate =
m_ctdelay = 0;