diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-03-17 02:25:52 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-03-17 02:25:52 +0800 |
commit | 34c298f4a61d09f59214d16ebcf1f2cec4056dbd (patch) | |
tree | 5d34e43062ceee2f7997658fbb0ab421a34169ee /calendar/gui | |
parent | 16f645ab25fff354e42b8348d2eceaa65fad5b86 (diff) | |
download | gsoc2013-evolution-34c298f4a61d09f59214d16ebcf1f2cec4056dbd.tar.gz gsoc2013-evolution-34c298f4a61d09f59214d16ebcf1f2cec4056dbd.tar.zst gsoc2013-evolution-34c298f4a61d09f59214d16ebcf1f2cec4056dbd.zip |
check if the selected event has its associated ECalModelComponent.
2004-03-16 Rodrigo Moya <rodrigo@ximian.com>
* gui/calendar-commands.c
(calendar_control_sensitize_calendar_commands): check if the selected
event has its associated ECalModelComponent.
svn path=/trunk/; revision=25092
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/calendar-commands.c | 2 |
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; |