[gthumb] folder tree: do not add the 'loading' item if the node has no child



commit d3f37b04615daccc2ccf078bbcc751ac69ca53e3
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Nov 1 06:55:35 2019 +0100

    folder tree: do not add the 'loading' item if the node has no child

 gthumb/gth-folder-tree.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gthumb/gth-folder-tree.c b/gthumb/gth-folder-tree.c
index 8fad9878..13508991 100644
--- a/gthumb/gth-folder-tree.c
+++ b/gthumb/gth-folder-tree.c
@@ -1636,6 +1636,9 @@ gth_folder_tree_loading_children (GthFolderTree *folder_tree,
        else
                return;
 
+       if (_gth_folder_tree_iter_has_no_child (folder_tree, p_parent_iter))
+               return;
+
        _gth_folder_tree_add_loading_item (folder_tree, p_parent_iter, FALSE);
 
        /* remove anything but the loading item */


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