From 1eb8e0e58501d1eb230390e94c3ff789cee0ffd5 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 28 Aug 2006 19:25:07 +0000 Subject: Set dtstart while creating memos using quick add svn path=/trunk/; revision=32692 --- calendar/ChangeLog | 5 +++++ calendar/gui/e-cal-model-memos.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 373889c7c0..0aec0df68b 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2006-08-29 Chenthill Palanisamy + + * gui/e-cal-model-memos.c: (ecmm_fill_component_from_model): + set dtstart while creating memos using quick add. + 2006-08-28 Chenthill Palanisamy * gui/migration.c: (is_groupwise_account), (add_gw_esource), diff --git a/calendar/gui/e-cal-model-memos.c b/calendar/gui/e-cal-model-memos.c index f32a12455e..ba5f8ab067 100644 --- a/calendar/gui/e-cal-model-memos.c +++ b/calendar/gui/e-cal-model-memos.c @@ -240,10 +240,17 @@ static void ecmm_fill_component_from_model (ECalModel *model, ECalModelComponent *comp_data, ETableModel *source_model, gint row) { + icaltimetype start; g_return_if_fail (E_IS_CAL_MODEL_MEMOS (model)); g_return_if_fail (comp_data != NULL); g_return_if_fail (E_IS_TABLE_MODEL (source_model)); + start = icalcomponent_get_dtstart (comp_data->icalcomp); + if (icaltime_compare_date_only (start, icaltime_null_time ()) == 0) { + start = icaltime_today (); + icalcomponent_set_dtstart (comp_data->icalcomp, start); + } + } /** -- cgit v1.2.3