aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-04 15:16:12 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-04 15:16:12 +0800
commitca0d8034c2da730dbd1c53057ad8ce3cbcda41b9 (patch)
tree6610a0b01f9d6c9c3cc4a6aef2b6d49a12e16ce2
parent1a7cbd512e9d635ae283e877898cb8c0f3d80e6a (diff)
downloadgsoc2013-evolution-ca0d8034c2da730dbd1c53057ad8ce3cbcda41b9.tar.gz
gsoc2013-evolution-ca0d8034c2da730dbd1c53057ad8ce3cbcda41b9.tar.zst
gsoc2013-evolution-ca0d8034c2da730dbd1c53057ad8ce3cbcda41b9.zip
Fixed this to not call the callback with a row of -1.
2001-04-04 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (etsm_row_foreach_cb): Fixed this to not call the callback with a row of -1. svn path=/trunk/; revision=9167
-rw-r--r--widgets/table/e-tree-selection-model.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/table/e-tree-selection-model.c b/widgets/table/e-tree-selection-model.c
index 3c0c3d22a3..bfca69472a 100644
--- a/widgets/table/e-tree-selection-model.c
+++ b/widgets/table/e-tree-selection-model.c
@@ -695,7 +695,8 @@ etsm_row_foreach_cb (ETreePath path, gpointer user_data)
{
ModelAndCallback *mac = user_data;
int row = etsm_row_of_node(mac->etsm, path);
- mac->callback(row, mac->closure);
+ if (row != -1)
+ mac->callback(row, mac->closure);
}
/**