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,