aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 4fe50f5bc5..dc2e154b46 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -546,6 +546,15 @@ task_page_fill_component (CompEditorPage *page, ECalComponent *comp)
e_cal_component_set_dtstart (comp, NULL);
}
+ if (start_date_set && due_date_set) {
+ int i = 0;
+ i = icaltime_compare (start_tt, due_tt);
+ if (i == 1) {
+ comp_editor_page_display_validation_error (page, _("Due date is wrong"), priv->due_date);
+ return FALSE;
+ }
+ }
+
/* Classification. */
e_cal_component_set_classification (comp, classification_get (priv->classification));