aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-meeting-list-view.c3
1 files changed, 2 insertions, 1 deletions
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 {