aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/calobj.c')
-rw-r--r--calendar/calobj.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/calobj.c b/calendar/calobj.c
index 0ab8c1c004..2618470808 100644
--- a/calendar/calobj.c
+++ b/calendar/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));