From 86b1b3b4815a0743a3c6ac86d87f249fe51f5b99 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 15 Feb 2005 14:18:26 +0000 Subject: Fixes #72038 2005-02-11 Rodrigo Moya Fixes #72038 * gui/itip-utils.c (itip_send_comp): when we get no recipients, don't send the message and return an error. svn path=/trunk/; revision=28798 --- calendar/ChangeLog | 7 +++++++ calendar/gui/itip-utils.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 60ea28f077..c31f1af71f 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2005-02-11 Rodrigo Moya + + Fixes #72038 + + * gui/itip-utils.c (itip_send_comp): when we get no recipients, don't + send the message and return an error. + 2005-02-10 Chenthill Palanisamy * gui/e-cal-model.c: (e_cal_view_objects_added_cb): Remove diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index a9fac69138..5b5091206b 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -918,6 +918,10 @@ itip_send_comp (ECalComponentItipMethod method, ECalComponent *send_comp, retval = TRUE; goto cleanup; } + } else if (to_list == NULL || to_list->_length == 0) { + /* if we don't have recipients, return */ + retval = FALSE; + goto cleanup; } cc_list = GNOME_Evolution_Composer_RecipientList__alloc (); -- cgit v1.2.3