forked from AuroraMiddleware/gtk
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:
parent
385fa71ec0
commit
688917cdbb
@ -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? */
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user