aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-09-06 03:24:23 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-09-06 03:24:23 +0800
commitcabdd19be6759c2db4a7b8cbe940e56f997db20e (patch)
treed86257bbd8fd4eb52ada017a1571578299a2d234 /calendar
parent2bd6772c828c7c9997f326fe849fc9df2977d6a7 (diff)
downloadgsoc2013-evolution-cabdd19be6759c2db4a7b8cbe940e56f997db20e.tar
gsoc2013-evolution-cabdd19be6759c2db4a7b8cbe940e56f997db20e.tar.gz
gsoc2013-evolution-cabdd19be6759c2db4a7b8cbe940e56f997db20e.tar.bz2
gsoc2013-evolution-cabdd19be6759c2db4a7b8cbe940e56f997db20e.tar.lz
gsoc2013-evolution-cabdd19be6759c2db4a7b8cbe940e56f997db20e.tar.xz
gsoc2013-evolution-cabdd19be6759c2db4a7b8cbe940e56f997db20e.tar.zst
gsoc2013-evolution-cabdd19be6759c2db4a7b8cbe940e56f997db20e.zip
don't try to send via the server if we are publishing; don't bail out on a
2002-09-05 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (itip_send_comp): don't try to send via the server if we are publishing; don't bail out on a 0 length to list if we are publishing svn path=/trunk/; revision=17992
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/itip-utils.c17
2 files changed, 18 insertions, 5 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 935ffee51f..ad958f220c 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-05 JP Rosevear <jpr@ximian.com>
+
+ * gui/itip-utils.c (itip_send_comp): don't try to send via the
+ server if we are publishing; don't bail out on a 0 length to list
+ if we are publishing
+
2002-09-05 Anna Marie Dirks <anna@ximian.com>
* gui/GNOME_Evolution_Calendar.oaf.in: Changed the description of
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index e388634e93..b75be1b484 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -809,9 +809,11 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *send_comp,
composer_server = BONOBO_OBJREF (bonobo_server);
/* Give the server a chance to manipulate the comp */
- if (!comp_server_send (method, send_comp, client, zones, &users))
- goto cleanup;
-
+ if (method != CAL_COMPONENT_METHOD_PUBLISH) {
+ if (!comp_server_send (method, send_comp, client, zones, &users))
+ goto cleanup;
+ }
+
/* Tidy up the comp */
comp = comp_compliant (method, send_comp);
if (comp == NULL)
@@ -819,8 +821,13 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *send_comp,
/* Recipients */
to_list = comp_to_list (method, comp, users);
- if (to_list == NULL || to_list->_length == 0)
- goto cleanup;
+ if (method != CAL_COMPONENT_METHOD_PUBLISH) {
+ if (to_list == NULL || to_list->_length == 0) {
+ /* We sent them all via the server */
+ retval = TRUE;
+ goto cleanup;
+ }
+ }
cc_list = GNOME_Evolution_Composer_RecipientList__alloc ();
cc_list->_maximum = cc_list->_length = 0;