diff --git a/include/wx/generic/progdlgg.h b/include/wx/generic/progdlgg.h index cca4526f6c..c8585ed15c 100644 --- a/include/wx/generic/progdlgg.h +++ b/include/wx/generic/progdlgg.h @@ -17,6 +17,7 @@ class WXDLLIMPEXP_FWD_CORE wxButton; class WXDLLIMPEXP_FWD_CORE wxGauge; class WXDLLIMPEXP_FWD_CORE wxStaticText; +class WXDLLIMPEXP_FWD_CORE wxWindowDisabler; /* Progress dialog which shows a moving progress bar. @@ -194,7 +195,7 @@ private: m_hasSkipButton; // for wxPD_APP_MODAL case - class WXDLLIMPEXP_FWD_CORE wxWindowDisabler *m_winDisabler; + wxWindowDisabler *m_winDisabler; DECLARE_EVENT_TABLE() wxDECLARE_NO_COPY_CLASS(wxGenericProgressDialog); diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 9cb3d3451f..fbfb8a8e32 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -125,6 +125,8 @@ void wxGenericProgressDialog::Init(wxWindow *parent, int maximum, int style) m_hasAbortButton = m_hasSkipButton = false; + + m_winDisabler = NULL; } wxGenericProgressDialog::wxGenericProgressDialog(wxWindow *parent,