From 17770bfef84a7399a00dc06fdbe817afb87231c2 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Fri, 23 Jan 2004 20:09:31 +0000 Subject: Use PUBLISH if no METHOD defined 2004-01-23 Rodney Dawes * gui/e-itip-control.c: Use PUBLISH if no METHOD defined Fixes #45564 svn path=/trunk/; revision=24385 --- calendar/ChangeLog | 6 ++++++ calendar/gui/e-itip-control.c | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 73c02abc9e..6366f30cc2 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2004-01-23 Rodney Dawes + + * gui/e-itip-control.c: Use PUBLISH if no METHOD defined + + Fixes #45564 + 2004-01-22 Rodrigo Moya * gui/e-cal-model.c (e_cal_view_objects_removed_cb): don't assert diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 5823ad7cbe..c3a718e834 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -1516,12 +1516,11 @@ e_itip_control_set_data (EItipControl *itip, const gchar *text) prop = icalcomponent_get_first_property (priv->main_comp, ICAL_METHOD_PROPERTY); if (prop == NULL) { - write_error_html (itip, _("The attachment does not contain a valid calendar message")); - return; + priv->method = ICAL_METHOD_PUBLISH; + } else { + priv->method = icalproperty_get_method (prop); } - priv->method = icalproperty_get_method (prop); - tz_iter = icalcomponent_begin_component (priv->main_comp, ICAL_VTIMEZONE_COMPONENT); while ((tz_comp = icalcompiter_deref (&tz_iter)) != NULL) { icalcomponent *clone; -- cgit