only allow selecting existing files in wxLoadFileSelector; use this function instead of wxFileSelector in the samples (closes #10693)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-06-12 18:02:57 +00:00
parent 0d14e4f21d
commit f2a18fbec6
5 changed files with 8 additions and 8 deletions

View File

@@ -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);
}
//----------------------------------------------------------------------------