diff options
-rw-r--r-- | calendar/gui/e-day-view.c | 12 | ||||
-rw-r--r-- | calendar/gui/e-week-view.c | 1 |
2 files changed, 8 insertions, 5 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index a5d6e410d6..ea1f541791 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -2528,16 +2528,14 @@ e_day_view_on_unrecur_appointment (GtkWidget *widget, gpointer data) date = g_new0 (CalComponentDateTime, 1); date->value = g_new (struct icaltimetype, 1); + *date->value = icaltimetype_from_timet (event->start, FALSE); cal_component_set_dtstart (new_comp, date); *date->value = icaltimetype_from_timet (event->end, FALSE); cal_component_set_dtend (new_comp, date); - g_free (date->value); - g_free (date); - - //new_ico->dtstart = event->start; - //new_ico->dtend = event->end; + cal_component_free_datetime (date); + /* Now update both CalComponents. Note that we do this last since at * present the updates happen synchronously so our event may disappear. */ @@ -5712,3 +5710,7 @@ e_day_view_on_main_canvas_drag_data_received (GtkWidget *widget, gtk_drag_finish (context, FALSE, FALSE, time); } + + + + diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index adf23e0971..98a52c4039 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -2846,6 +2846,7 @@ e_week_view_on_unrecur_appointment (GtkWidget *widget, gpointer data) CalComponent *comp, *new_comp; CalComponentDateTime *date; GSList *list; + week_view = E_WEEK_VIEW (data); if (week_view->popup_event_num == -1) |