X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b4715d08bf50050ae00df367d0c95666ca22d088..c753eb9269d1e6c99b80a2d782ce49d9864ac1da:/src/common/fldlgcmn.cpp diff --git a/src/common/fldlgcmn.cpp b/src/common/fldlgcmn.cpp index 487d426bc9..b621b6a07f 100644 --- a/src/common/fldlgcmn.cpp +++ b/src/common/fldlgcmn.cpp @@ -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); } //----------------------------------------------------------------------------