diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2007-01-28 15:22:34 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2007-01-28 15:22:34 (GMT) |
commit | a23410c308dc197b6e32ddd61b9160cdaf3a1df3 (patch) | |
tree | ab0176794270d88ed55a76c0c66d7b27229c047c | |
parent | 1740f9ca0bb04fbc0afc9ddb9d23a6aa2090baa1 (diff) |
Don't delete history
svn path=/trunk/; revision=2262
-rw-r--r-- | shell/ev-history.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/shell/ev-history.c b/shell/ev-history.c index d4aa822..87a506f 100644 --- a/shell/ev-history.c +++ b/shell/ev-history.c @@ -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, |