From: Dale Whittaker Date: Thu, 17 Jul 2008 07:58:08 +0000 (+0200) Subject: Workaround a GIO bug that causes an infinite loop X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ac54eec03cc8ef17c1652c9cceb145936715a53;p=midori Workaround a GIO bug that causes an infinite loop --- diff --git a/midori/midori-webview.c b/midori/midori-webview.c index 3ed6cc0b..aa0721c4 100644 --- a/midori/midori-webview.c +++ b/midori/midori-webview.c @@ -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,