]> spindle.queued.net Git - midori/commitdiff
Work-around libSoup not setting a proper directory title
authorChristian Dywan <christian@twotoasts.de>
Wed, 19 Oct 2011 07:26:58 +0000 (09:26 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 19 Oct 2011 07:26:58 +0000 (09:26 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/872123
midori/midori-view.c

index 3646917b269d5adcd9dd2cc11dcc2d843f34a77a..448e80433ec5ffd460a3f603bddd900464434f98 100644 (file)
@@ -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));