summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}