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 b53e822af7
commit 6d0ff4708c

View File

@ -1778,7 +1778,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);