mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
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:
parent
72fad93587
commit
a676f9dada
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user