From 8ab688397f3142538b9b464b0024896ce8453adc Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 15 Jun 2001 00:07:32 +0000 Subject: generate a new UID when pasting 2001-06-15 Rodrigo Moya * gui/e-day-view.c (selection_received): generate a new UID when pasting * gui/e-week-view.c (selection_received): ditto svn path=/trunk/; revision=10246 --- calendar/gui/e-day-view.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'calendar/gui/e-day-view.c') diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index ae9b499eef..491b3327c9 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -6529,6 +6529,7 @@ selection_received (GtkWidget *invisible, time_t dtstart, dtend; struct icaltimetype itime; CalComponent *comp; + char *uid; g_return_if_fail (E_IS_DAY_VIEW (day_view)); @@ -6550,6 +6551,10 @@ selection_received (GtkWidget *invisible, comp = cal_component_new (); cal_component_set_icalcomponent (comp, icalcomp); + uid = cal_component_gen_uid (); + cal_component_set_uid (comp, (const char *) uid); + free (uid); + cal_client_update_object (day_view->client, comp); gtk_object_unref (GTK_OBJECT (comp)); -- cgit