From f07fce730701bade64ef5830459bb0debb4e7b00 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 13 May 2006 10:14:08 +0000 Subject: Update the title when updating the history on reload svn path=/trunk/netsurf/; revision=2600 --- desktop/history_core.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'desktop/history_core.c') diff --git a/desktop/history_core.c b/desktop/history_core.c index 1150220bd..edb3fd248 100644 --- a/desktop/history_core.c +++ b/desktop/history_core.c @@ -283,6 +283,13 @@ void history_update(struct history *history, struct content *content) if (!history || !history->current || !history->current->bitmap) return; + if (history->current->title) + free(history->current->title); + if (content->title) + history->current->title = strdup(content->title); + else + history->current->title = 0; + thumbnail_create(content, history->current->bitmap, 0); } -- cgit v1.2.3