Bug #60069 --> checking this patch in for Sergey Lunegov (lsv@sparc.spb.su)

make sure the mime action is initialized with the right action.
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@82862 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com 2000-11-22 19:48:49 +00:00
parent db92cd9458
commit adb8c92516

View File

@ -885,6 +885,8 @@ NS_IMETHODIMP nsExternalAppHandler::SaveToDisk(nsIFile * aNewFileLocation, PRBoo
if (mCanceled)
return NS_OK;
mMimeInfo->SetPreferredAction(nsIMIMEInfo::saveToDisk);
if (!aNewFileLocation)
{
nsXPIDLString leafName;
@ -946,6 +948,8 @@ NS_IMETHODIMP nsExternalAppHandler::LaunchWithApplication(nsIFile * aApplication
if (mCanceled)
return NS_OK;
mMimeInfo->SetPreferredAction(nsIMIMEInfo::useHelperApp);
// user has chosen to launch using an application, fire any refresh tags now...
ProcessAnyRefreshTags();