From bc9dd9dde3006943171a80489c0af850da21d293 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 6 May 2003 19:20:31 +0000 Subject: i2003-05-06 Chris Toshok [ really commit this, fixes bug #41910 ] * gui/contact-list-editor/e-contact-list-model.c (e_contact_list_model_remove_row): change from model_changed to row_deleted here. model_changed causes the table to free its ETableSelection, which is what we iterate over when deleting contacts. (e_contact_list_model_add_destination): no need to be calling model_changed here either. svn path=/trunk/; revision=21117 --- addressbook/gui/contact-list-editor/e-contact-list-model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/contact-list-editor/e-contact-list-model.c b/addressbook/gui/contact-list-editor/e-contact-list-model.c index 6e8357d93c..6cad1bd9bf 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-model.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-model.c @@ -182,7 +182,7 @@ e_contact_list_model_add_destination (EContactListModel *model, EDestination *de model->data[model->data_count ++] = dest; g_object_ref (dest); - e_table_model_changed (E_TABLE_MODEL (model)); + e_table_model_row_inserted (E_TABLE_MODEL (model), model->data_count - 1); } void @@ -227,7 +227,7 @@ e_contact_list_model_remove_row (EContactListModel *model, int row) memmove (model->data + row, model->data + row + 1, sizeof (EDestination*) * (model->data_count - row - 1)); model->data_count --; - e_table_model_changed (E_TABLE_MODEL (model)); + e_table_model_row_deleted (E_TABLE_MODEL (model), row); } void -- cgit