From 30f4225cd9a88cfc9cbf8bb8eab77d65412876eb Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 19 Oct 2011 09:26:58 +0200 Subject: [PATCH] Work-around libSoup not setting a proper directory title Fixes: https://bugs.launchpad.net/midori/+bug/872123 --- midori/midori-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/midori/midori-view.c b/midori/midori-view.c index 3646917b..448e8043 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -626,6 +626,9 @@ midori_view_set_title (MidoriView* view, const gchar* title) if (!title) 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));