From 4ac54eec03cc8ef17c1652c9cceb145936715a53 Mon Sep 17 00:00:00 2001 From: Dale Whittaker Date: Thu, 17 Jul 2008 09:58:08 +0200 Subject: [PATCH] Workaround a GIO bug that causes an infinite loop --- midori/midori-webview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5