[libgda] Better handle iter moving errors in GdauiDataProxy



commit c20501c84700922d8abed45416de62dd1f19b05b
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sun Jan 24 16:03:56 2010 +0100

    Better handle iter moving errors in GdauiDataProxy

 libgda/gda-data-proxy.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-data-proxy.c b/libgda/gda-data-proxy.c
index 8ee66c5..6dd58f1 100644
--- a/libgda/gda-data-proxy.c
+++ b/libgda/gda-data-proxy.c
@@ -2417,8 +2417,10 @@ chunk_sync_idle (GdaDataProxy *proxy)
 			repl_row = index;
 			if (!iter) 
 				iter = gda_data_model_create_iter (proxy->priv->model);
-			if (!gda_data_model_iter_move_to_row (iter, repl_row))
-				repl_row = -1;
+			if (!gda_data_model_iter_move_to_row (iter, repl_row)) {
+				if (gda_data_model_iter_get_row (iter) != repl_row)
+					repl_row = -1;
+			}
 		}
 
 #ifdef DEBUG_SYNC



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]