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:
parent
db92cd9458
commit
adb8c92516
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user