summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-07-16 13:15:22 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-07-16 13:15:22 +0100
commit618ef549838363f337a2162f34c0fa60c6e1899f (patch)
tree38da513092d7527d1b9d143443fb224635487254
parent07c2add5cc28efa18f7bcaae239879a3bc12a700 (diff)
downloadnetsurf-618ef549838363f337a2162f34c0fa60c6e1899f.tar.gz
netsurf-618ef549838363f337a2162f34c0fa60c6e1899f.tar.bz2
Update new global history, if the treeview test option is set.
-rw-r--r--desktop/browser.c7
1 files changed, 6 insertions, 1 deletions
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));
}
}