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: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
Sergey Orlov 2010-08-24 13:17:15 -05:00 committed by Federico Mena Quintero
parent 72fad93587
commit a676f9dada

View File

@ -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);