diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-08-29 03:25:07 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-08-29 03:25:07 +0800 |
commit | 1eb8e0e58501d1eb230390e94c3ff789cee0ffd5 (patch) | |
tree | 0663a7e0e6df75d4c176a711aad9f4f292930404 /calendar/gui | |
parent | f4f8f32f59cba8f56cc866c6bc2b359817ba7fba (diff) | |
download | gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.gz gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.bz2 gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.lz gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.xz gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.zst gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.zip |
Set dtstart while creating memos using quick add
svn path=/trunk/; revision=32692
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-cal-model-memos.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); + } + } /** |