Commit a676f9da authored by Sergey Orlov's avatar Sergey Orlov Committed by Federico Mena Quintero

bgo#614006 - GtkFileSystemModel - Make sure to generate node IDs are valid for new files

When a file was inserted during the period that the editable row was
active, the node IDs would not get updated correctly.
Signed-off-by: 's avatarFederico Mena Quintero <federico@novell.com>
parent 72fad935
......@@ -1777,7 +1777,10 @@ _gtk_file_system_model_update_file (GtkFileSystemModel *model,
id = node_get_for_file (model, file);
if (id == 0)
add_file (model, file, info);
{
add_file (model, file, info);
id = node_get_for_file (model, file);
}
node = get_node (model, id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment