[nautilus] view-model: Don't remove files when adding items



commit 634bc0c67a94a68c1c0cffa83aa538276f9f82da
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Mar 30 17:05:19 2017 +0200

    view-model: Don't remove files when adding items
    
    A copy paste error from the set_items function.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780380

 src/nautilus-view-model.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-view-model.c b/src/nautilus-view-model.c
index f45ecef..1021caa 100644
--- a/src/nautilus-view-model.c
+++ b/src/nautilus-view-model.c
@@ -269,7 +269,6 @@ nautilus_view_model_add_items (NautilusViewModel *self,
     array = g_malloc_n (g_queue_get_length (items),
                         sizeof (NautilusViewItemModel *));
 
-    g_hash_table_remove_all (self->map_files_to_model);
     for (l = g_queue_peek_head_link (items); l != NULL; l = l->next)
     {
         array[i] = l->data;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]