summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c6
1 files changed, 6 insertions, 0 deletions
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();