summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--walls_model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/walls_model.c b/walls_model.c
index c2e7ef6..91684b3 100644
--- a/walls_model.c
+++ b/walls_model.c
@@ -378,7 +378,7 @@ static gboolean walls_model_iter_has_child(GtkTreeModel *tree_model, GtkTreeIter
if(record->type == WALLS_MODEL_TYPE_DIR) {
//return (record->children->len > 0 ? TRUE : FALSE);
- return TRUE;
+ return (record->parent == NULL && WALLS_MODEL(tree_model)->num_rows == 0 ? FALSE : TRUE);
} else
return FALSE;
}