From 2affb76944a4cd83a2ff6722c3150abbb972f37d Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 3 Feb 2005 13:18:22 +0000 Subject: [project @ 2005-02-03 13:18:22 by rjw] Implementation of URL suggestion svn path=/import/netsurf/; revision=1488 --- desktop/browser.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'desktop/browser.c') diff --git a/desktop/browser.c b/desktop/browser.c index e4cfb2273..9e17657e1 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -22,6 +22,7 @@ #include "netsurf/utils/config.h" #include "netsurf/content/fetch.h" #include "netsurf/content/fetchcache.h" +#include "netsurf/content/url_store.h" #include "netsurf/css/css.h" #ifdef WITH_AUTH #include "netsurf/desktop/401login.h" @@ -166,6 +167,7 @@ void browser_window_go_post(struct browser_window *bw, const char *url, char *url2; char *hash; url_func_result res; + struct url_content *url_content; LOG(("bw %p, url %s", bw, url)); @@ -194,6 +196,10 @@ void browser_window_go_post(struct browser_window *bw, const char *url, bw->frag_id = strdup(hash+1); } + url_content = url_store_find(url2); + if (url_content) + url_content->visits++; + browser_window_set_status(bw, messages_get("Loading")); bw->history_add = history_add; bw->time0 = clock(); -- cgit v1.2.3