From 4f64b1167ab2f51c5a534df8244954d0dbde287c Mon Sep 17 00:00:00 2001 From: Harry Lu Date: Mon, 30 May 2005 08:34:09 +0000 Subject: check whether backend could handle sending resuests/updates, and if so, 2005-05-30 Harry Lu * gui/itip-utils.c: (itip_send_comp): check whether backend could handle sending resuests/updates, and if so, just return. svn path=/trunk/; revision=29424 --- calendar/ChangeLog | 5 +++++ calendar/gui/itip-utils.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 20e3407aae..08c53993af 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2005-05-30 Harry Lu + + * gui/itip-utils.c: (itip_send_comp): check whether backend could + handle sending resuests/updates, and if so, just return. + 2005-05-24 Chenthill Palanisamy Fixes #272114 diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 9cbdc6a438..fa76efe579 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -895,11 +895,15 @@ itip_send_comp (ECalComponentItipMethod method, ECalComponent *send_comp, char *ical_string; CORBA_Environment ev; gboolean retval = FALSE; + + /* check whether backend could handle sending resuests/updates */ + if (method != E_CAL_COMPONENT_METHOD_PUBLISH && e_cal_get_save_schedules (client)) + return TRUE; CORBA_exception_init (&ev); /* Give the server a chance to manipulate the comp */ - if (method != E_CAL_COMPONENT_METHOD_PUBLISH && !e_cal_get_save_schedules (client)) { + if (method != E_CAL_COMPONENT_METHOD_PUBLISH) { if (!comp_server_send (method, send_comp, client, zones, &users)) goto cleanup; } -- cgit v1.2.3