From 376dfb96be3926380ce58497be2241519fa8c556 Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Tue, 10 Jan 2012 19:09:35 +0200 Subject: history-service: Count the first url visit --- lib/history/ephy-history-service.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/history') diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c index 2f3df7f73..61d7b2b05 100644 --- a/lib/history/ephy-history-service.c +++ b/lib/history/ephy-history-service.c @@ -371,6 +371,8 @@ ephy_history_service_execute_add_visit_helper (EphyHistoryService *self, EphyHis /* A NULL return here means that the URL does not yet exist in the database */ if (NULL == ephy_history_service_get_url_row (self, visit->url->url, visit->url)) { visit->url->last_visit_time = visit->visit_time; + visit->url->visit_count = 1; + ephy_history_service_add_url_row (self, visit->url); if (visit->url->id == -1) { -- cgit v1.2.3