]> spindle.queued.net Git - midori/commitdiff
Workaround a GIO bug that causes an infinite loop
authorDale Whittaker <dale@dalew.co.uk>
Thu, 17 Jul 2008 07:58:08 +0000 (09:58 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 17 Jul 2008 07:58:08 +0000 (09:58 +0200)
midori/midori-webview.c

index 3ed6cc0b3b85c726f88b44132a93fd6629064c24..aa0721c43a1f2d18271b10d480aed5cac451a99c 100644 (file)
@@ -945,7 +945,8 @@ midori_web_view_get_icon (MidoriWebView* web_view)
 
         parent = g_file_get_parent (file);
     }
-    while (!icon && parent);
+    while (!icon && parent && !g_file_equal (file, parent));
+    /* We need to check if file equals the parent due to a GIO bug */
 
     if (icon && (stream = g_loadable_icon_load (G_LOADABLE_ICON (icon),
                                                 GTK_ICON_SIZE_MENU,