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:
Benjamin Otte 2010-06-16 12:41:40 +02:00
parent 6138f23f5b
commit a8e3ce6bb4

View File

@ -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;
}