- if((style&wxSAVE)&&(style&wxOVERWRITE_PROMPT))
- if(wxFileExists(gtk_file_selection_get_filename(GTK_FILE_SELECTION(dialog->m_widget) ))) {
- if(wxMessageBox(_("File exists. Overwrite?"),
- _("Confirm"), wxYES_NO) != wxYES)
- return;
- }
-
- dialog->OnOK( event );
+wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
+ const wxString& defaultDir,
+ const wxString& defaultFileName,
+ const wxString& wildCard,
+ long style, const wxPoint& pos,
+ const wxSize& sz,
+ const wxString& name)
+ : wxGenericFileDialog(parent, message, defaultDir, defaultFileName,
+ wildCard, style, pos, sz, name, true )
+{
+ wxGenericFileDialog::Create( parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name );