aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 8b9e39149e..485a930f89 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -5519,6 +5519,7 @@ e_day_view_start_editing_event (EDayView *day_view,
EDayViewEvent *event;
ETextEventProcessor *event_processor = NULL;
ETextEventProcessorCommand command;
+ gboolean read_only;
#if 0
g_print ("In e_day_view_start_editing_event\n");
@@ -5537,6 +5538,9 @@ e_day_view_start_editing_event (EDayView *day_view,
event_num);
}
+ if (!e_cal_is_read_only (event->comp_data->client, &read_only, NULL) || read_only)
+ return;
+
/* If the event is not shown, don't try to edit it. */
if (!event->canvas_item)
return;