aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2005-05-30 16:34:09 +0800
committerHarry Lu <haip@src.gnome.org>2005-05-30 16:34:09 +0800
commit4f64b1167ab2f51c5a534df8244954d0dbde287c (patch)
tree4c9ec20e2ea0e0377efc1b84cdf986f7d22dd34a
parenta6a36259921c512e3a5d8cc46210114026c34b74 (diff)
downloadgsoc2013-evolution-4f64b1167ab2f51c5a534df8244954d0dbde287c.tar.gz
gsoc2013-evolution-4f64b1167ab2f51c5a534df8244954d0dbde287c.tar.zst
gsoc2013-evolution-4f64b1167ab2f51c5a534df8244954d0dbde287c.zip
check whether backend could handle sending resuests/updates, and if so,
2005-05-30 Harry Lu <harry.lu@sun.com> * 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
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/itip-utils.c6
2 files changed, 10 insertions, 1 deletions
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 <harry.lu@sun.com>
+
+ * 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 <pchenthill@novell.com>
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;
}