mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
Can't select file on file browser after changing sort order
The row values are 1-indexed not 0-indexed, this has to be taken into account when producing the new_order array. https://bugzilla.gnome.org/show_bug.cgi?id=621414
This commit is contained in:
parent
6138f23f5b
commit
a8e3ce6bb4
@ -739,7 +739,7 @@ gtk_file_system_model_sort (GtkFileSystemModel *model)
|
||||
continue;
|
||||
}
|
||||
|
||||
new_order[r] = node->row;
|
||||
new_order[r] = node->row - 1;
|
||||
r++;
|
||||
node->row = r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user