summaryrefslogtreecommitdiff
path: root/desktop/options.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2006-06-14 22:46:12 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2006-06-14 22:46:12 +0000
commitc1dbdad995bc41ad26fd50721c3f6e872171de20 (patch)
treef90a4a359ecfa9be1d7e8276ddc3541ae2d020a4 /desktop/options.c
parent217e59aebefb1a0a17fd713a8e38c2563cda8c8c (diff)
downloadnetsurf-c1dbdad995bc41ad26fd50721c3f6e872171de20.tar.gz
netsurf-c1dbdad995bc41ad26fd50721c3f6e872171de20.tar.bz2
Provide persistent flag for urldb entries.
Make hotlist use this, rather than abusing the last visited date. This fixes the hotlist being copied to global history issue. svn path=/trunk/netsurf/; revision=2619
Diffstat (limited to 'desktop/options.c')
-rw-r--r--desktop/options.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/options.c b/desktop/options.c
index 2cd88d371..1787e55a5 100644
--- a/desktop/options.c
+++ b/desktop/options.c
@@ -435,14 +435,15 @@ void options_load_tree_entry(xmlNode *li, struct node *directory) {
if (!data) {
/* No entry in database, so add one */
urldb_add_url(url);
- /* and bump visit data */
- urldb_update_url_visit_data(url);
/* now attempt to get url data */
data = urldb_get_url_data(url);
}
if (!data)
return;
+ /* Make this URL persistent */
+ urldb_set_url_persistence(url, true);
+
if (!data->title)
urldb_set_url_title(url, title);