aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-calendar-view.c8
2 files changed, 15 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index af1dd19a22..e910418892 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,12 @@
2005-11-28 Chenthill Palanisamy <pchenthill@novell.com>
+ Fixes #314639
+ * gui/e-calendar-view.c:
+ (e_calendar_view_new_appointment_for): Check if the default
+ client is loaded before creating the appointment.
+
+2005-11-28 Chenthill Palanisamy <pchenthill@novell.com>
+
Fixes #318777
* gui/e-cal-model.c:
(add_instance_cb): Set the instance start as the started date for
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;