]> www.fi.muni.cz Git - evince.git/commitdiff
Don't delete history
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 28 Jan 2007 15:22:34 +0000 (15:22 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 28 Jan 2007 15:22:34 +0000 (15:22 +0000)
svn path=/trunk/; revision=2262

shell/ev-history.c

index d4aa8225a6320b8ab709a4edb31904f2b74455f5..87a506f33b0c05bf36d67d62dc027594e8f5cb01 100644 (file)
@@ -137,19 +137,6 @@ ev_history_add_link (EvHistory *history, EvLink *link)
        g_return_if_fail (EV_IS_HISTORY (history));
        g_return_if_fail (EV_IS_LINK (link));
 
-       length = g_list_length (history->priv->links);
-       if (history->priv->current_index < length - 1) {
-               GList *l = g_list_nth (history->priv->links,
-                                      history->priv->current_index + 1);
-               
-               if (l->prev) {
-                       l->prev->next = NULL;
-                       free_links_list (l);
-               } else {
-                       free_links_list (history->priv->links);
-                       history->priv->links = NULL;
-               }
-       }
 
        g_object_ref (link);
        history->priv->links = g_list_append (history->priv->links,