Updating branch refs/heads/master
to 30f4225cd9a88cfc9cbf8bb8eab77d65412876eb (commit)
from 2bb7fe3c2d22da2dde88ee32f3b2a70986f55f17 (commit)
commit 30f4225cd9a88cfc9cbf8bb8eab77d65412876eb
Author: Christian Dywan <[email protected]>
Date: Wed Oct 19 09:26:58 2011 +0200
Work-around libSoup not setting a proper directory title
Fixes: https://bugs.launchpad.net/midori/+bug/872123
midori/midori-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 3646917..448e804 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));
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits