aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-day-view.c5
-rw-r--r--calendar/gui/e-week-view.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index ae9b499eef..491b3327c9 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -6529,6 +6529,7 @@ selection_received (GtkWidget *invisible,
time_t dtstart, dtend;
struct icaltimetype itime;
CalComponent *comp;
+ char *uid;
g_return_if_fail (E_IS_DAY_VIEW (day_view));
@@ -6550,6 +6551,10 @@ selection_received (GtkWidget *invisible,
comp = cal_component_new ();
cal_component_set_icalcomponent (comp, icalcomp);
+ uid = cal_component_gen_uid ();
+ cal_component_set_uid (comp, (const char *) uid);
+ free (uid);
+
cal_client_update_object (day_view->client, comp);
gtk_object_unref (GTK_OBJECT (comp));
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 7d2f1611e7..aa850a9ac9 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -3480,6 +3480,7 @@ selection_received (GtkWidget *invisible,
time_t dtstart, dtend;
struct icaltimetype itime;
CalComponent *comp;
+ char *uid;
g_return_if_fail (E_IS_WEEK_VIEW (week_view));
@@ -3501,6 +3502,10 @@ selection_received (GtkWidget *invisible,
comp = cal_component_new ();
cal_component_set_icalcomponent (comp, icalcomp);
+ uid = cal_component_gen_uid ();
+ cal_component_set_uid (comp, (const char *) uid);
+ free (uid);
+
cal_client_update_object (week_view->client, comp);
gtk_object_unref (GTK_OBJECT (comp));