X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6dae1b4432a3ecbf3ca8b983440728a46af8f20..c753eb9269d1e6c99b80a2d782ce49d9864ac1da:/src/common/fldlgcmn.cpp diff --git a/src/common/fldlgcmn.cpp b/src/common/fldlgcmn.cpp index e57a244cb3..b621b6a07f 100644 --- a/src/common/fldlgcmn.cpp +++ b/src/common/fldlgcmn.cpp @@ -9,13 +9,13 @@ // 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" @@ -313,7 +313,8 @@ static wxString wxDefaultFileSelector(bool load, } return wxFileSelector(prompt, wxEmptyString, default_name, ext, wild, - load ? wxFD_OPEN : wxFD_SAVE, parent); + load ? (wxFD_OPEN | wxFD_FILE_MUST_EXIST) : wxFD_SAVE, + parent); } //----------------------------------------------------------------------------