diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-12-23 01:54:05 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-12-23 01:54:05 +0100 |
commit | 65d29f76687a258e824b5f9a0ffaea912e086aea (patch) | |
tree | 82c5926ec0ca10866ee0611de347885d7f3c37ac | |
parent | aecce87bc3bf771ef9e920c07c42b8a3e57e26e9 (diff) |
No children on empty models.
-rw-r--r-- | walls_model.c | 2 |
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; } |