From 618ef549838363f337a2162f34c0fa60c6e1899f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 16 Jul 2013 13:15:22 +0100 Subject: Update new global history, if the treeview test option is set. --- desktop/browser.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop/browser.c b/desktop/browser.c index 2ab93c908..9f3636ed9 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -45,6 +45,7 @@ #include "desktop/browser_private.h" #include "desktop/download.h" #include "desktop/frames.h" +#include "desktop/global_history.h" #include "desktop/gui.h" #include "desktop/history_global_core.h" #include "desktop/hotlist.h" @@ -1247,8 +1248,12 @@ static nserror browser_window_callback(hlcache_handle *c, urldb_update_url_visit_data(url); urldb_set_url_content_type(url, content_get_type(c)); + /* This is safe as we've just added the URL */ - history_global_add(urldb_get_url(url)); + if (nsoption_bool(temp_treeview_test) == false) + history_global_add(urldb_get_url(url)); + else + global_history_add(urldb_get_url(url)); } } -- cgit v1.2.3