From: Dale Whittaker Date: Wed, 29 Apr 2009 21:53:59 +0000 (+0200) Subject: Leave 'added' stamp of history items to fix duplicate detection X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb606ecdad241dfbabf7f39f4e2397fe0f8af0b5;p=midori Leave 'added' stamp of history items to fix duplicate detection Only the 'added' value of parents shall contain the age in days. --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index cb04bb3c..041643a5 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -3784,7 +3784,6 @@ midori_browser_new_history_item (MidoriBrowser* browser, time_t now; gint64 day; gint64 pday; - gint64 age; gint64 newage; gchar token[50]; @@ -3797,15 +3796,12 @@ midori_browser_new_history_item (MidoriBrowser* browser, while ((parent = katze_array_get_nth_item (browser->history, i++))) { pday = katze_item_get_added (KATZE_ITEM (parent)); - age = katze_item_get_added (item); newage = day - pday; if (newage == 0) { found = TRUE; katze_array_add_item (parent, item); } - if (age != newage) - katze_item_set_added (item, newage); } if (!found) {