diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2006-05-13 10:14:08 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2006-05-13 10:14:08 +0000 |
commit | f07fce730701bade64ef5830459bb0debb4e7b00 (patch) | |
tree | be72c0bc71c9b68c0b66bcc63b5e7fa69258fc60 | |
parent | 1822e9bfd84e2e9d6e274e3c59ea29a2f51a3102 (diff) | |
download | netsurf-f07fce730701bade64ef5830459bb0debb4e7b00.tar.gz netsurf-f07fce730701bade64ef5830459bb0debb4e7b00.tar.bz2 |
Update the title when updating the history on reload
svn path=/trunk/netsurf/; revision=2600
-rw-r--r-- | desktop/history_core.c | 7 |
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); } |