Update the title when updating the history on reload

svn path=/trunk/netsurf/; revision=2600
This commit is contained in:
Daniel Silverstone 2006-05-13 10:14:08 +00:00
parent 1822e9bfd8
commit f07fce7307
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}