diff options
author | Federico Mena Quintero <federico@ximian.com> | 2004-06-01 16:34:53 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2004-06-01 16:34:53 +0000 |
commit | aa37764403522f291269f5577b940ad27668cb16 (patch) | |
tree | 0cc57ab4fbd998e8e597f82b7889eaa22e980f31 /gtk/gtkfilesystemmodel.c | |
parent | 8611df01ace632272bd6db0f9f6b4115f5b98a0c (diff) | |
download | gdk-pixbuf-aa37764403522f291269f5577b940ad27668cb16.tar.gz |
Don't insert a dummy node if there is no parent node. Fixes #143362.
2004-06-01 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystemmodel.c (do_files_removed): Don't insert a
dummy node if there is no parent node. Fixes #143362.
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 3a6368191..64d25fbf7 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -1777,7 +1777,7 @@ do_files_removed (GtkFileSystemModel *model, if (children->is_visible) n_visible--; - if (n_visible == 0) + if (parent_node && n_visible == 0) { FileModelNode *dummy = file_model_node_new (model, NULL); dummy->is_visible = TRUE; |