From d91fa3b9901e778cf7814dd3f4f69f0e80d8eef9 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 24 Apr 2006 07:55:56 +0000 Subject: Fixes #332409 Reset the ecal to NULL. If the default client does not exist 2006-04-24 Chenthill Palanisamy Fixes #332409 * gui/calendar-component.c: (setup_create_ecal): Reset the ecal to NULL. * gui/e-calendar-view.c: (e_calendar_view_new_appointment_for): If the default client does not exist do not open the dialog. svn path=/trunk/; revision=31879 --- calendar/gui/e-calendar-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui/e-calendar-view.c') diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index d612dc1432..3b9c0758de 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -1843,7 +1843,7 @@ e_calendar_view_new_appointment_for (ECalendarView *cal_view, default_client = e_cal_model_get_default_client (priv->model); - if (default_client && e_cal_get_load_state (default_client) != E_CAL_LOAD_LOADED) { + if (!default_client || e_cal_get_load_state (default_client) != E_CAL_LOAD_LOADED) { g_warning ("Default client not loaded \n"); return; } @@ -1906,7 +1906,7 @@ e_calendar_view_new_appointment_for (ECalendarView *cal_view, flags |= COMP_EDITOR_USER_ORG; } - open_event_with_flags (cal_view, e_cal_model_get_default_client (priv->model), + open_event_with_flags (cal_view, default_client, icalcomp, flags); g_object_unref (comp); -- cgit v1.2.3