Commit 3faab2cf authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

history: no need to remove other occurrences of the current location

parent 9a60752f
......@@ -578,19 +578,6 @@ _gth_browser_history_add (GthBrowser *browser,
scan = next;
}
/* remove all the occurrences of 'file' from the history */
for (scan = browser->priv->history; scan; /* void */) {
GList *next = scan->next;
GFile *file_in_history = scan->data;
if (_g_file_equal_uris (file, file_in_history)) {
browser->priv->history = g_list_remove_link (browser->priv->history, scan);
_g_object_list_unref (scan);
}
scan = next;
}
browser->priv->history = g_list_prepend (browser->priv->history, g_object_ref (file));
browser->priv->history_current = browser->priv->history;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment