[gnome-photos] selection-toolbar: Prevent nested collections



commit be7553dbb4db833c95c38dff88b61b5ad9b6c504
Author: Rafael Fonseca <r4f4rfs gmail com>
Date:   Fri Apr 15 16:28:16 2016 +0200

    selection-toolbar: Prevent nested collections
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764681

 src/photos-selection-toolbar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-selection-toolbar.c b/src/photos-selection-toolbar.c
index d14fa0b..f2a7022 100644
--- a/src/photos-selection-toolbar.c
+++ b/src/photos-selection-toolbar.c
@@ -213,6 +213,8 @@ photos_selection_toolbar_set_item_visibility (PhotosSelectionToolbar *self)
 
       item = PHOTOS_BASE_ITEM (photos_base_manager_get_object_by_id (self->item_mngr, urn));
 
+      show_collection = show_collection && !photos_base_item_is_collection (item);
+
       if (photos_base_item_is_favorite (item))
         fav_count++;
 


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