aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-11-28 20:40:35 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-11-28 20:40:35 +0800
commit5b574105a7ee33c9cb7d6997e614518136bb83bf (patch)
tree660e7d72e2fc7eb234e21efe677378f834130ce4 /calendar
parent581a3fa9e479faaf470025d3336f4d2ecdaebf7e (diff)
downloadgsoc2013-evolution-5b574105a7ee33c9cb7d6997e614518136bb83bf.tar
gsoc2013-evolution-5b574105a7ee33c9cb7d6997e614518136bb83bf.tar.gz
gsoc2013-evolution-5b574105a7ee33c9cb7d6997e614518136bb83bf.tar.bz2
gsoc2013-evolution-5b574105a7ee33c9cb7d6997e614518136bb83bf.tar.lz
gsoc2013-evolution-5b574105a7ee33c9cb7d6997e614518136bb83bf.tar.xz
gsoc2013-evolution-5b574105a7ee33c9cb7d6997e614518136bb83bf.tar.zst
gsoc2013-evolution-5b574105a7ee33c9cb7d6997e614518136bb83bf.zip
fixes #314639
svn path=/trunk/; revision=30695
Diffstat (limited to 'calendar')
-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;