aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
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/gui
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/gui')
-rw-r--r--calendar/gui/e-calendar-view.c8
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;