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



commit 24f0467acb18187dbaf028885ffe809cd277c2a8
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 cb653cb..dc7c6d6 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -1170,7 +1170,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]