mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-30 11:07:38 +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
b53e822af7
commit
6d0ff4708c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user