Fix for #17666 - nsFileSpecWithUIImpl.cpp::ChooseOutputFile was returning NS_OK when user actually canceled the file selection. Code from vxir@concentric.net, r=sdagley
git-svn-id: svn://10.0.0.236/trunk@53317 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -107,6 +107,8 @@ NS_IMETHODIMP nsFileSpecWithUIImpl::ChooseOutputFile(
|
||||
nsFileDlgResults result = fileWidget->PutFile(nsnull, winTitle, spec);
|
||||
if (result != nsFileDlgResults_OK)
|
||||
{
|
||||
if (result == nsFileDlgResults_Cancel)
|
||||
return NS_ERROR_ABORT;
|
||||
if (spec.Exists() && result != nsFileDlgResults_Replace)
|
||||
return NS_FILE_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user