X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53daeadab733c0458a7541efe48c3f86a5444692..babd4308f2704f4234e271d29a8e8c1e211b4af6:/src/gtk1/filedlg.cpp diff --git a/src/gtk1/filedlg.cpp b/src/gtk1/filedlg.cpp index 086a593ef5..f2c2c99011 100644 --- a/src/gtk1/filedlg.cpp +++ b/src/gtk1/filedlg.cpp @@ -116,7 +116,13 @@ wxFileDialog::wxFileDialog( wxWindow *parent, const wxString& message, { m_needParent = FALSE; - PreCreation( parent, -1, pos, wxDefaultSize, style | wxDIALOG_MODAL, "filedialog" ); + if (!PreCreation( parent, pos, wxDefaultSize ) || + !CreateBase( parent, -1, pos, wxDefaultSize, style | wxDIALOG_MODAL, wxDefaultValidator, _T("filedialog") )) + { + wxFAIL_MSG( _T("wxXX creation failed") ); + return; + } + m_message = message; m_path = _T(""); m_fileName = defaultFileName;