aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index cc7896bd13..c03b722de9 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -513,6 +513,9 @@ calendar_control_sensitize_calendar_commands (BonoboControl *control, GnomeCalen
uic = bonobo_control_get_ui_component (control);
g_assert (uic != NULL);
+ if (bonobo_ui_component_get_container (uic) == CORBA_OBJECT_NIL)
+ return;
+
view = gnome_calendar_get_current_view_widget (gcal);
list = e_calendar_view_get_selected_events (E_CALENDAR_VIEW (view));