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



commit c218433db98423f035fa9ecc71e30ca6fee67700
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]