summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemmodel.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2004-06-01 16:34:53 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2004-06-01 16:34:53 +0000
commitaa37764403522f291269f5577b940ad27668cb16 (patch)
tree0cc57ab4fbd998e8e597f82b7889eaa22e980f31 /gtk/gtkfilesystemmodel.c
parent8611df01ace632272bd6db0f9f6b4115f5b98a0c (diff)
downloadgdk-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.c2
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;