When removing a file, also remove it from the file_lookup hash table

Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
Federico Mena Quintero 2009-09-02 15:21:45 -05:00 committed by Benjamin Otte
parent 385fa71ec0
commit 688917cdbb

View File

@ -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? */
}
/**