aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/memo-page.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c
index 6c50cc029f..e29d9cc38c 100644
--- a/calendar/gui/dialogs/memo-page.c
+++ b/calendar/gui/dialogs/memo-page.c
@@ -693,11 +693,13 @@ memo_page_fill_component (CompEditorPage *page, ECalComponent *comp)
comp_editor_page_display_validation_error (page, _("Start date is wrong"), priv->start_date);
return FALSE;
}
- e_date_edit_get_date (E_DATE_EDIT (priv->start_date),
+ if (e_date_edit_get_date (E_DATE_EDIT (priv->start_date),
&start_tt.year,
&start_tt.month,
- &start_tt.day);
- e_cal_component_set_dtstart (comp, &start_date);
+ &start_tt.day))
+ e_cal_component_set_dtstart (comp, &start_date);
+ else
+ e_cal_component_set_dtstart (comp, NULL);
/* Classification. */
e_cal_component_set_classification (comp, priv->classification);