From 34c298f4a61d09f59214d16ebcf1f2cec4056dbd Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 16 Mar 2004 18:25:52 +0000 Subject: check if the selected event has its associated ECalModelComponent. 2004-03-16 Rodrigo Moya * gui/calendar-commands.c (calendar_control_sensitize_calendar_commands): check if the selected event has its associated ECalModelComponent. svn path=/trunk/; revision=25092 --- calendar/ChangeLog | 6 ++++++ calendar/gui/calendar-commands.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 0df976024d..c601059ba4 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2004-03-16 Rodrigo Moya + + * gui/calendar-commands.c + (calendar_control_sensitize_calendar_commands): check if the selected + event has its associated ECalModelComponent. + 2004-03-15 JP Rosevear * gui/e-tasks.c (search_bar_sexp_changed_cb): set the search query 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; -- cgit v1.2.3