aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
authorHannah & Fazlu <hannah_lins@yahoo.co.in>2004-09-20 15:35:35 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-09-20 15:35:35 +0800
commit6abad9096931fcd677bcddbb7f9e49761a22857c (patch)
treea27b87829b9feabce4ac0831e24fe0e8c931030a /calendar/gui/dialogs/task-page.c
parentef6a3af717132e0750f226fa8a0ee0f3c98e19f0 (diff)
downloadgsoc2013-evolution-6abad9096931fcd677bcddbb7f9e49761a22857c.tar.gz
gsoc2013-evolution-6abad9096931fcd677bcddbb7f9e49761a22857c.tar.zst
gsoc2013-evolution-6abad9096931fcd677bcddbb7f9e49761a22857c.zip
Fixes bug #65051
2004-09-10 Hannah & Fazlu <hannah_lins@yahoo.co.in> Fixes bug #65051 * calendar/gui/dialogs/task-page.c (task_page_fill_component): Compared the dates and time svn path=/trunk/; revision=27302
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));