From: Christian Dywan Date: Wed, 19 Oct 2011 07:26:58 +0000 (+0200) Subject: Work-around libSoup not setting a proper directory title X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30f4225cd9a88cfc9cbf8bb8eab77d65412876eb;p=midori Work-around libSoup not setting a proper directory title Fixes: https://bugs.launchpad.net/midori/+bug/872123 --- 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));