зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2e3075ee0b
Коммит
96df6c16de
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче