aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/calobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/pcs/calobj.c')
-rw-r--r--calendar/pcs/calobj.c4
1 files changed, 3 insertions, 1 deletions
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));