diff options
author | Benjamin Otte <otte@redhat.com> | 2010-06-16 12:41:40 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-06-28 14:19:18 +0200 |
commit | 42abeadbb812172c8f3e3c7b7dc4662cb90cff89 (patch) | |
tree | ce269e40320f82394a08c1a272aa4bee22fa31bd /gtk/gtkfilesystemmodel.c | |
parent | cd266cb8de84a05846ca725751cf0ef428f000e4 (diff) | |
download | gtk+-42abeadbb812172c8f3e3c7b7dc4662cb90cff89.tar.gz |
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
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 738b061563..7c9e1dca0f 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -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; } |