aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index 7c97374a87..cf846de38d 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -512,7 +512,7 @@ calendar_control_sensitize_calendar_commands (BonoboControl *control, GnomeCalen
n_selected = enable ? g_list_length (list) : 0;
event = (ECalendarViewEvent *) list ? list->data : NULL;
- if (event)
+ if (event && event->comp_data)
e_cal_is_read_only (event->comp_data->client, &selected_read_only, NULL);
else
selected_read_only = TRUE;