changeset 1763:140b73f094c5

fixed tree_store reordering
author nadvornik
date Thu, 01 Oct 2009 17:37:51 +0000
parents 680bcf82eaff
children 91ec4714b905
files src/view_file_list.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file_list.c	Mon Sep 28 12:04:35 2009 +0000
+++ b/src/view_file_list.c	Thu Oct 01 17:37:51 2009 +0000
@@ -962,7 +962,6 @@
 
 			if (valid)
 				{
-				num_ordered++;
 				gtk_tree_model_get(GTK_TREE_MODEL(store), &iter,
 						   FILE_COLUMN_POINTER, &old_fd,
 						   FILE_COLUMN_VERSION, &old_version,
@@ -994,6 +993,7 @@
 
 				if (valid)
 					{
+					num_ordered++;
 					gtk_tree_store_insert_before(store, &new, parent_iter, &iter);
 					}
 				else
@@ -1026,6 +1026,7 @@
 				}
 			else
 				{
+				num_ordered++;
 				if (fd->version != old_version || force)
 					{
 					vflist_setup_iter(vf, store, &iter, fd);