Fix for bug 100381; use OFN_NOCHANGEDIR to prevent saved-to directory from

being in-use (i.e., preventing rmdir); r=morse, sr=blake
This commit is contained in:
law%netscape.com 2001-10-13 00:32:37 +00:00
Родитель 511a787492
Коммит 21845f40df
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -159,8 +159,7 @@ NS_IMETHODIMP nsFilePicker::Show(PRInt16 *retval)
ofn.lpstrFile = fileBuffer;
ofn.nMaxFile = MAX_PATH;
// XXX use OFN_NOCHANGEDIR for M5
ofn.Flags = OFN_SHAREAWARE | OFN_LONGNAMES | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY;
ofn.Flags = OFN_NOCHANGEDIR | OFN_SHAREAWARE | OFN_LONGNAMES | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY;
// Get file extension from suggested filename
// to detect if we are saving an html file