[gnome-photos/gnome-3-22] item-manager: Short-circuit collections in wait_for_changes_async



commit 8868463f11dcf3a502f215f84fb3397eee863fd7
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jan 11 11:11:22 2017 +0100

    item-manager: Short-circuit collections in wait_for_changes_async
    
    Collections are stored in tracker's database. Unlike local BaseItems,
    they are not going to undergo atomic file updates that can possibly
    change their URN.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776565

 src/photos-item-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 492abcc..f57f069 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -1093,7 +1093,7 @@ photos_item_manager_wait_for_changes_async (PhotosItemManager *self,
   task = g_task_new (self, cancellable, callback, user_data);
   g_task_set_source_tag (task, photos_item_manager_wait_for_changes_async);
 
-  if (!PHOTOS_IS_LOCAL_ITEM (item))
+  if (!PHOTOS_IS_LOCAL_ITEM (item) || photos_base_item_is_collection (item))
     {
       const gchar *id;
 


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