diff options
author | Miguel de Icaza <miguel@gnu.org> | 1999-07-27 07:06:35 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-07-27 07:06:35 +0800 |
commit | 81207158058c5f5e4315e3b66f92a46aec64e5ae (patch) | |
tree | 63a244aa5bf4dac5596896a3bfffdfc76ec1b34a /calendar/cal-util | |
parent | c1ff2cca41bef3f9e72f9d8222eaf145e9b03498 (diff) | |
download | gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.gz gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.bz2 gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.lz gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.xz gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.tar.zst gsoc2013-evolution-81207158058c5f5e4315e3b66f92a46aec64e5ae.zip |
Generate unique IDs on Vevents we load that lack it. WE need this for the
1999-07-26 Miguel de Icaza <miguel@gnu.org>
* 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
Diffstat (limited to 'calendar/cal-util')
-rw-r--r-- | calendar/cal-util/calobj.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c index 0ab8c1c004..2618470808 100644 --- a/calendar/cal-util/calobj.c +++ b/calendar/cal-util/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)); |