diff options
author | Federico Mena Quintero <federico@novell.com> | 2009-09-02 15:21:45 -0500 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-10-15 22:06:15 +0200 |
commit | 688917cdbbbc42678c9bcfd9249fa80119000498 (patch) | |
tree | cc17fd887daaf7e30fa4ea837567816eb5283889 /gtk/gtkfilesystemmodel.c | |
parent | 385fa71ec0c7a8f59a729bbba2d8a327f5a62596 (diff) | |
download | gtk+-688917cdbbbc42678c9bcfd9249fa80119000498.tar.gz |
When removing a file, also remove it from the file_lookup hash table
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 69cd059b78..1f830f0d00 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -1610,10 +1610,15 @@ remove_file (GtkFileSystemModel *model, node = get_node (model, id); node_set_visible (model, id, FALSE); + + g_hash_table_remove (model->file_lookup, file); g_object_unref (node->file); + if (node->info) g_object_unref (node->info); + g_array_remove_index (model->files, id); + /* FMQ: do we need to resort? */ } /** |