Workaround a GIO bug that causes an infinite loop

This commit is contained in:
Dale Whittaker 2008-07-17 09:58:08 +02:00 committed by Christian Dywan
parent 7f388237dc
commit 4ac54eec03
1 changed files with 2 additions and 1 deletions

View 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,