diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-01-11 01:09:35 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-03-07 04:49:43 +0800 |
commit | 376dfb96be3926380ce58497be2241519fa8c556 (patch) | |
tree | 3d93987da8bf261e09ac82cc7b845c162d52b75d | |
parent | 28d99a055c87d0b224ee8dadd3f8c95b50ce43d0 (diff) | |
download | gsoc2013-epiphany-376dfb96be3926380ce58497be2241519fa8c556.tar gsoc2013-epiphany-376dfb96be3926380ce58497be2241519fa8c556.tar.gz gsoc2013-epiphany-376dfb96be3926380ce58497be2241519fa8c556.tar.bz2 gsoc2013-epiphany-376dfb96be3926380ce58497be2241519fa8c556.tar.lz gsoc2013-epiphany-376dfb96be3926380ce58497be2241519fa8c556.tar.xz gsoc2013-epiphany-376dfb96be3926380ce58497be2241519fa8c556.tar.zst gsoc2013-epiphany-376dfb96be3926380ce58497be2241519fa8c556.zip |
history-service: Count the first url visit
-rw-r--r-- | lib/history/ephy-history-service.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |