[epiphany/history-rewrite-second: 17/28] history-service: Count the first url visit
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/history-rewrite-second: 17/28] history-service: Count the first url visit
- Date: Tue, 28 Feb 2012 16:44:50 +0000 (UTC)
commit b619ac3dee5b335104d449067ebb1d7d1dae068a
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]