Bug 36789; this enables us to switch to nsIFilePicker; it was not remembering the selected file when choosing to replace an existing one; r=bryner

This commit is contained in:
law%netscape.com 2000-06-09 00:43:19 +00:00
Родитель 2e3075ee0b
Коммит 96df6c16de
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -141,7 +141,7 @@ NS_IMETHODIMP nsFilePicker::Show(PRInt16 *retval)
// Clean up filter buffers
delete[] filterBuffer;
if (userClicksOK == returnOK)
if (userClicksOK == returnOK || userClicksOK == returnReplace)
{
nsCOMPtr<nsILocalFile> localFile(do_CreateInstance("component://mozilla/file/local"));
nsCOMPtr<nsILocalFileMac> macFile(do_QueryInterface(localFile));