// 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 wxFileSelector(prompt, wxEmptyString, default_name, ext, wild,
- load ? wxFD_OPEN : wxFD_SAVE, parent);
+ load ? (wxFD_OPEN | wxFD_FILE_MUST_EXIST) : wxFD_SAVE,
+ parent);
}
//----------------------------------------------------------------------------