]> spindle.queued.net Git - midori/commitdiff
Fav favicon mime comparison again
authorChristian Dywan <christian@twotoasts.de>
Thu, 17 Jul 2008 08:12:34 +0000 (10:12 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 17 Jul 2008 09:51:17 +0000 (11:51 +0200)
midori/midori-webview.c

index aa0721c43a1f2d18271b10d480aed5cac451a99c..2748efc63e851a0ed99da829e5b19fb5c30e30eb 100644 (file)
@@ -938,8 +938,8 @@ midori_web_view_get_icon (MidoriWebView* web_view)
         if (info)
         {
             content_type = g_file_info_get_content_type (info);
-            /* favicon.ico can be image/x-ico or image/x-icon */
-            icon = !strcmp (content_type, "image/x-ico")
+            icon = (!strcmp (content_type, "image/x-icon")
+                || !strcmp (content_type, "image/x-ico"))
                 ? g_file_icon_new (icon_file) : NULL;
         }