aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/itip-formatter/ChangeLog2
-rw-r--r--plugins/itip-formatter/itip-formatter.c13
2 files changed, 12 insertions, 3 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog
index 462220fbe9..2136d63954 100644
--- a/plugins/itip-formatter/ChangeLog
+++ b/plugins/itip-formatter/ChangeLog
@@ -2,6 +2,8 @@
* itip-formatter.c (update_item): first crack at saving
attachments for the backend
+ (extract_itip_data): tell the user what to do for more than one
+ attachment
2005-01-09 JP Rosevear <jpr@novell.com>
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 5a642c03ec..ff07f6321f 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -1001,11 +1001,18 @@ extract_itip_data (FormatItipPObject *pitip, GtkContainer *container)
pitip->total += icalcomponent_count_components (pitip->main_comp, ICAL_VTODO_COMPONENT);
pitip->total += icalcomponent_count_components (pitip->main_comp, ICAL_VFREEBUSY_COMPONENT);
- if (pitip->total > 0)
+ if (pitip->total > 1) {
+ set_itip_error (pitip, container,
+ _("The calendar attached contains multiple items"),
+ _("To process all of these items, the file should be saved and the calendar imported"));
+
+ return FALSE;
+ } if (pitip->total > 0) {
pitip->current = 1;
- else
+ } else {
pitip->current = 0;
-
+ }
+
/* Determine any delegate sections */
prop = icalcomponent_get_first_property (pitip->ical_comp, ICAL_X_PROPERTY);
while (prop) {