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:
committed by
Federico Mena Quintero
parent
72fad93587
commit
a676f9dada
@ -1777,7 +1777,10 @@ _gtk_file_system_model_update_file (GtkFileSystemModel *model,
|
|||||||
|
|
||||||
id = node_get_for_file (model, file);
|
id = node_get_for_file (model, file);
|
||||||
if (id == 0)
|
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);
|
node = get_node (model, id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user