From 41930cb707fb94e9ea90a4b431cb83a6cee05f75 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 24 Mar 2005 08:47:44 +0000 Subject: Fixes #73320 Check if we are editing the same row and if so do not remove 2005-03-24 Chenthill Palanisamy Fixes #73320 * gui/e-meeting-list-view.c: (attendee_edited_cb): Check if we are editing the same row and if so do not remove the attendee. svn path=/trunk/; revision=29098 --- calendar/gui/e-meeting-list-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calendar/gui/e-meeting-list-view.c') diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c index f411b1be2d..088301fc92 100644 --- a/calendar/gui/e-meeting-list-view.c +++ b/calendar/gui/e-meeting-list-view.c @@ -231,8 +231,9 @@ attendee_edited_cb (GtkCellRenderer *renderer, const gchar *path, GList *address } else if (g_list_length (addresses) == 1) { char *name = names->data, *email = addresses->data; + int existing_row; - if (!((name && *name) || (email && *email)) || e_meeting_store_find_attendee (model, email, NULL) != NULL) { + if (!((name && *name) || (email && *email)) || ((e_meeting_store_find_attendee (model, email, &existing_row) != NULL) && existing_row != row)){ if (existing_attendee) e_meeting_store_remove_attendee (model, existing_attendee); } else { -- cgit v1.2.3