diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-11-06 17:22:13 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-11-06 17:22:13 +0800 |
commit | 3ab7e02369a8e5ee50bb843776bef2272491119e (patch) | |
tree | ac0375a5aaef8954b83ab7d1f92a870696b3bf1e /calendar/gui/dialogs | |
parent | a85e3fcfdd3a14642c5380fc1e4a7c5aded48150 (diff) | |
download | gsoc2013-evolution-3ab7e02369a8e5ee50bb843776bef2272491119e.tar.gz gsoc2013-evolution-3ab7e02369a8e5ee50bb843776bef2272491119e.tar.zst gsoc2013-evolution-3ab7e02369a8e5ee50bb843776bef2272491119e.zip |
Fixes #354875
svn path=/trunk/; revision=32951
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/recurrence-page.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index d04c9abbed..e2696026b2 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -1359,12 +1359,16 @@ make_ending_until_special (RecurrencePage *rpage) gtk_widget_show_all (GTK_WIDGET (de)); /* Set the value */ - - e_cal_component_get_dtstart (priv->comp, &dt_start); - /* Setting the default until time to 2 weeks */ - icaltime_adjust (dt_start.value, 14, 0, 0, 0); - e_date_edit_set_date (de, dt_start.value->year, dt_start.value->month, dt_start.value->day); - e_cal_component_free_datetime (&dt_start); + + if (COMP_EDITOR_PAGE (rpage)->flags & COMP_EDITOR_PAGE_NEW_ITEM) { + e_cal_component_get_dtstart (priv->comp, &dt_start); + /* Setting the default until time to 2 weeks */ + icaltime_adjust (dt_start.value, 14, 0, 0, 0); + e_date_edit_set_date (de, dt_start.value->year, dt_start.value->month, dt_start.value->day); + e_cal_component_free_datetime (&dt_start); + } else { + e_date_edit_set_date (de, priv->ending_date_tt.year, priv->ending_date_tt.month, priv->ending_date_tt.day); + } g_signal_connect((de), "changed", G_CALLBACK (ending_until_changed_cb), rpage); |