Bug 94756; make file picker check for read-only files when saving; r=cmanske, sr=ben

This commit is contained in:
law%netscape.com 2002-02-01 23:52:58 +00:00
parent 550c8cead6
commit 3f9abc53ac

View File

@ -186,6 +186,7 @@ NS_IMETHODIMP nsFilePicker::Show(PRInt16 *retval)
result = ::GetOpenFileName(&ofn);
}
else if (mMode == modeSave) {
ofn.Flags |= OFN_NOREADONLYRETURN;
result = ::GetSaveFileName(&ofn);
if (!result) {
// Error, find out what kind.