aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/calobj.c4
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));