]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fldlgcmn.cpp
implement new wxBG_STYLE_XXX semantics for wxMSW too
[wxWidgets.git] / src / common / fldlgcmn.cpp
index 487d426bc90e10e846cf67926d3da21db0262c4d..b621b6a07f7ab386315cf8f6a841cbe05690953d 100644 (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);
 }
 
 //----------------------------------------------------------------------------