From 81207158058c5f5e4315e3b66f92a46aec64e5ae Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Mon, 26 Jul 1999 23:06:35 +0000 Subject: Generate unique IDs on Vevents we load that lack it. WE need this for the 1999-07-26 Miguel de Icaza * calobj.c (ical_object_create_from_vobject): Generate unique IDs on Vevents we load that lack it. WE need this for the old gnome calendar generated files (ie, before now :-). Required to sync with the Palm svn path=/trunk/; revision=1037 --- calendar/pcs/calobj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/pcs') diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c index 0ab8c1c004..2618470808 100644 --- a/calendar/pcs/calobj.c +++ b/calendar/pcs/calobj.c @@ -585,8 +585,10 @@ ical_object_create_from_vobject (VObject *o, const char *object_name) if (has (o, VCUniqueStringProp)){ ical->uid = g_strdup (str_val (vo)); free (the_str); + } else { + ical->uid = ical_gen_uid (); } - + /* seq */ if (has (o, VCSequenceProp)){ ical->seq = atoi (str_val (vo)); -- cgit v1.2.3