// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
#if wxUSE_FILEDLG
#include "wx/filedlg.h"
return filePath + ext;
}
-bool wxFileDialogBase::SetExtraControlCreator(ExtraControlCreatorFunction c)
+bool wxFileDialogBase::SetExtraControlCreator(ExtraControlCreatorFunction creator)
{
wxCHECK_MSG( !m_extraControlCreator, false,
"wxFileDialog::SetExtraControl() called second time" );
- m_extraControlCreator = c;
+ m_extraControlCreator = creator;
return SupportsExtraControl();
}
}
return wxFileSelector(prompt, wxEmptyString, default_name, ext, wild,
- load ? wxFD_OPEN : wxFD_SAVE, parent);
+ load ? (wxFD_OPEN | wxFD_FILE_MUST_EXIST) : wxFD_SAVE,
+ parent);
}
//----------------------------------------------------------------------------