aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table')
-rw-r--r--widgets/e-table/ChangeLog5
-rw-r--r--widgets/e-table/e-table-selection-model.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index 365dfe2a30..1b64dddaea 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,5 +1,10 @@
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
+ * e-table-selection-model.c: Check for selection->selection being
+ NULL in e_table_selection_model_selected_count.
+
+2000-08-24 Christopher James Lahey <clahey@helixcode.com>
+
* e-table-item.c: Pay attention to the return value from the click
signal.
diff --git a/widgets/e-table/e-table-selection-model.c b/widgets/e-table/e-table-selection-model.c
index 9079ce8623..ffe8cfa947 100644
--- a/widgets/e-table/e-table-selection-model.c
+++ b/widgets/e-table/e-table-selection-model.c
@@ -483,6 +483,9 @@ e_table_selection_model_selected_count (ETableSelectionModel *selection)
int i;
int last;
+ if (!selection->selection)
+ return 0;
+
count = 0;
last = BOX(selection->row_count - 1);