aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-meeting-edit.c')
-rw-r--r--calendar/gui/e-meeting-edit.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/gui/e-meeting-edit.c b/calendar/gui/e-meeting-edit.c
index bdacb7514b..80202fd804 100644
--- a/calendar/gui/e-meeting-edit.c
+++ b/calendar/gui/e-meeting-edit.c
@@ -949,9 +949,12 @@ e_meeting_edit (EMeetingEditor *editor)
priv->organizer_entry = glade_xml_get_widget (priv->xml, "organizer_entry");
- if (icalcomponent_isa (priv->icalcomp) != ICAL_VEVENT_COMPONENT)
- priv->vevent = icalcomponent_get_first_component(priv->icalcomp,ICAL_VEVENT_COMPONENT);
- else
+ if (icalcomponent_isa (priv->icalcomp) != ICAL_VEVENT_COMPONENT) {
+ icalcompiter iter;
+
+ iter = icalcomponent_begin_component (priv->icalcomp, ICAL_VEVENT_COMPONENT);
+ priv->vevent = icalcompiter_deref (&iter);
+ } else
priv->vevent = priv->icalcomp;
g_assert (priv->vevent != NULL);