Commit 8c1b7b23 authored by philringnalda@gmail.com's avatar philringnalda@gmail.com
Browse files

Bug 387189 - nsMIMEInfoHandleAction type doesn't exist, patch by Mook...

Bug 387189 - nsMIMEInfoHandleAction type doesn't exist, patch by Mook <mook.songbird@gmail.com>, r+sr=dmose
parent 95ba4680
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -113,13 +113,18 @@ void AppLauncherDlg::OnInitDialog()
        mHelperAppLauncher->GetSource(getter_AddRefs(uri));
        uri->GetSpec(url);
    }
    nsMIMEInfoHandleAction prefAction = nsIMIMEInfo::saveToDisk;
    nsHandlerInfoAction prefAction = nsIMIMEInfo::saveToDisk;
    nsAutoString appName;
    nsCAutoString contentType;
    if (mimeInfo)
    {
        mimeInfo->GetPreferredAction(&prefAction);
        mimeInfo->GetApplicationDescription(appName);
        nsCOMPtr<nsIHandlerApp> handlerApp;
        mimeInfo->GetPreferredApplicationHandler(getter_AddRefs(handlerApp));
        if (handlerApp)
        {
            handlerApp->GetName(appName);
        }
        mimeInfo->GetMIMEType(contentType);
    }
    if (prefAction == nsIMIMEInfo::saveToDisk)