Work-around libSoup not setting a proper directory title

Fixes: https://bugs.launchpad.net/midori/+bug/872123
This commit is contained in:
Christian Dywan 2011-10-19 09:26:58 +02:00
parent 2bb7fe3c2d
commit 30f4225cd9

View file

@ -626,6 +626,9 @@ midori_view_set_title (MidoriView* view, const gchar* title)
if (!title) if (!title)
title = view->uri; title = view->uri;
/* Work-around libSoup not setting a proper directory title */
else if (!strcmp (title, "OMG!") && g_str_has_prefix (view->uri, "file://"))
title = view->uri;
katze_assign (view->title, g_strdup (title)); katze_assign (view->title, g_strdup (title));