Leave 'added' stamp of history items to fix duplicate detection
Only the 'added' value of parents shall contain the age in days.
This commit is contained in:
parent
b7e852fe09
commit
eb606ecdad
1 changed files with 0 additions and 4 deletions
|
@ -3784,7 +3784,6 @@ midori_browser_new_history_item (MidoriBrowser* browser,
|
||||||
time_t now;
|
time_t now;
|
||||||
gint64 day;
|
gint64 day;
|
||||||
gint64 pday;
|
gint64 pday;
|
||||||
gint64 age;
|
|
||||||
gint64 newage;
|
gint64 newage;
|
||||||
gchar token[50];
|
gchar token[50];
|
||||||
|
|
||||||
|
@ -3797,15 +3796,12 @@ midori_browser_new_history_item (MidoriBrowser* browser,
|
||||||
while ((parent = katze_array_get_nth_item (browser->history, i++)))
|
while ((parent = katze_array_get_nth_item (browser->history, i++)))
|
||||||
{
|
{
|
||||||
pday = katze_item_get_added (KATZE_ITEM (parent));
|
pday = katze_item_get_added (KATZE_ITEM (parent));
|
||||||
age = katze_item_get_added (item);
|
|
||||||
newage = day - pday;
|
newage = day - pday;
|
||||||
if (newage == 0)
|
if (newage == 0)
|
||||||
{
|
{
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
katze_array_add_item (parent, item);
|
katze_array_add_item (parent, item);
|
||||||
}
|
}
|
||||||
if (age != newage)
|
|
||||||
katze_item_set_added (item, newage);
|
|
||||||
}
|
}
|
||||||
if (!found)
|
if (!found)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue