[epiphany/history-rewrite-second: 17/26] history-service: Count the first url visit



commit bd0388d6e50678b14ab337c8634034a28ef1b16d
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Tue Jan 10 19:09:35 2012 +0200

    history-service: Count the first url visit

 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 2f3df7f..61d7b2b 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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]