summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2006-05-13 10:14:08 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2006-05-13 10:14:08 +0000
commitf07fce730701bade64ef5830459bb0debb4e7b00 (patch)
treebe72c0bc71c9b68c0b66bcc63b5e7fa69258fc60 /desktop
parent1822e9bfd84e2e9d6e274e3c59ea29a2f51a3102 (diff)
downloadnetsurf-f07fce730701bade64ef5830459bb0debb4e7b00.tar.gz
netsurf-f07fce730701bade64ef5830459bb0debb4e7b00.tar.bz2
Update the title when updating the history on reload
svn path=/trunk/netsurf/; revision=2600
Diffstat (limited to 'desktop')
-rw-r--r--desktop/history_core.c7
1 files changed, 7 insertions, 0 deletions
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);
}