diff options
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r-- | calendar/gui/e-calendar-view.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 5c17d39dcf..8709281820 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -1680,12 +1680,20 @@ e_calendar_view_new_appointment_for (ECalendarView *cal_view, ECalComponent *comp; icalcomponent *icalcomp; ECalComponentTransparency transparency; + ECal *default_client = NULL; guint32 flags = 0; g_return_if_fail (E_IS_CALENDAR_VIEW (cal_view)); priv = cal_view->priv; + default_client = e_cal_model_get_default_client (priv->model); + + if (default_client && e_cal_get_load_state (default_client) != E_CAL_LOAD_LOADED) { + g_warning ("Default client not loaded \n"); + return; + } + dt.value = &itt; if (all_day) dt.tzid = NULL; |