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



commit a413a146f09ae464d81f68190a571f5b12204e8b
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 3584e95..dffa147 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]