Workaround a GIO bug that causes an infinite loop
This commit is contained in:
parent
7f388237dc
commit
4ac54eec03
1 changed files with 2 additions and 1 deletions
|
@ -945,7 +945,8 @@ midori_web_view_get_icon (MidoriWebView* web_view)
|
||||||
|
|
||||||
parent = g_file_get_parent (file);
|
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),
|
if (icon && (stream = g_loadable_icon_load (G_LOADABLE_ICON (icon),
|
||||||
GTK_ICON_SIZE_MENU,
|
GTK_ICON_SIZE_MENU,
|
||||||
|
|
Loading…
Reference in a new issue