Prevent title from being empty when following an anchor

Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
Quentin Rameau 2014-02-08 12:39:37 +01:00 committed by Christoph Lohmann
parent 3cc5f87db8
commit 618c3dfd52
1 changed files with 4 additions and 2 deletions

2
surf.c
View File

@ -1179,8 +1179,10 @@ stop(Client *c, const Arg *arg) {
static void static void
titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c) { titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
const gchar *t = webkit_web_view_get_title(view); const gchar *t = webkit_web_view_get_title(view);
if (t) {
c->title = copystr(&c->title, t); c->title = copystr(&c->title, t);
updatetitle(c); updatetitle(c);
}
} }
static void static void