Commit 688917cd authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Benjamin Otte

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

Signed-off-by: default avatarFederico Mena Quintero <>
parent 385fa71e
......@@ -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? */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment