From e5912fedd112f117b9656e703941e6d934981355 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 15 Apr 2006 18:53:20 +0000 Subject: Use database's copy of URL for new global history entries svn path=/trunk/netsurf/; revision=2534 --- desktop/browser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/browser.c b/desktop/browser.c index 7948ca9fa..6cc18ca4b 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -332,7 +332,8 @@ void browser_window_callback(content_msg msg, struct content *c, c->title ? c->title : c->url); urldb_update_url_visit_data(c->url); urldb_set_url_content_type(c->url, c->type); - global_history_add(c->url); + /* This is safe as we've just added the URL */ + global_history_add(urldb_get_url(c->url)); } switch (c->type) { case CONTENT_HTML: -- cgit v1.2.3