[gnome-photos/wip/rishi/item-manager: 3/11] item-manager: Remove hidden items that have been deleted out of band



commit 8ffac6d5fe55b87a979335592e48a8bdb423a01e
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Aug 15 11:47:37 2016 +0200

    item-manager: Remove hidden items that have been deleted out of band
    
    In future, we should emit a signal so that the DestroyNotification can
    be withdrawn.

 src/photos-item-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index bc24a0b..d8c2724 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -203,6 +203,7 @@ photos_item_manager_changes_pending_foreach (gpointer key, gpointer value, gpoin
       if (object != NULL)
         {
           photos_base_item_destroy (PHOTOS_BASE_ITEM (object));
+          g_hash_table_remove (self->hidden_items, change_urn);
           photos_base_manager_remove_object_by_id (PHOTOS_BASE_MANAGER (self), change_urn);
         }
     }


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