mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 94756; make file picker check for read-only files when saving; r=cmanske, sr=ben
This commit is contained in:
parent
550c8cead6
commit
3f9abc53ac
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user