From 3289f253a58dac56d91c0930005c0c37c2dec6c2 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 6 Jul 2004 14:00:51 +0000 Subject: If the MIME is unknown, use application/octet-stream. * embed/downloader-view.c: (downloader_view_add_download): * embed/mozilla/mozilla-download.cpp: If the MIME is unknown, use application/octet-stream. --- embed/downloader-view.c | 1 - embed/mozilla/mozilla-download.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'embed') diff --git a/embed/downloader-view.c b/embed/downloader-view.c index cc1ebe29f..0029c0aca 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -484,7 +484,6 @@ downloader_view_add_download (DownloaderView *dv, ephy_dialog_show (EPHY_DIALOG (dv)); mime = ephy_download_get_mime (download); - if (mime == NULL) return; theme = gtk_icon_theme_get_default (); icon_name = gnome_icon_lookup (theme, NULL, NULL, NULL, NULL, diff --git a/embed/mozilla/mozilla-download.cpp b/embed/mozilla/mozilla-download.cpp index 2997faa16..06bf43290 100644 --- a/embed/mozilla/mozilla-download.cpp +++ b/embed/mozilla/mozilla-download.cpp @@ -187,7 +187,7 @@ impl_get_mime (EphyDownload *download) mozDownload = MOZILLA_DOWNLOAD (download)->priv->moz_download; mozDownload->GetMIMEInfo (getter_AddRefs(mime)); - if (!mime) return NULL; + if (!mime) return g_strdup ("application/octet-stream"); #if MOZILLA_CHECK_VERSION4 (1, 8, MOZILLA_ALPHA, 1) mime->GetMIMEType(mimeType); -- cgit v1.2.3