aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-view.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2006-04-24 15:55:56 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2006-04-24 15:55:56 +0800
commitd91fa3b9901e778cf7814dd3f4f69f0e80d8eef9 (patch)
tree8eaf21d6b558b83ef1bd9a2bce453cba6fcda2ba /calendar/gui/e-calendar-view.c
parent6ee18ea859f29a61e2a2b71e6acf4e92063fa51f (diff)
downloadgsoc2013-evolution-d91fa3b9901e778cf7814dd3f4f69f0e80d8eef9.tar
gsoc2013-evolution-d91fa3b9901e778cf7814dd3f4f69f0e80d8eef9.tar.gz
gsoc2013-evolution-d91fa3b9901e778cf7814dd3f4f69f0e80d8eef9.tar.bz2
gsoc2013-evolution-d91fa3b9901e778cf7814dd3f4f69f0e80d8eef9.tar.lz
gsoc2013-evolution-d91fa3b9901e778cf7814dd3f4f69f0e80d8eef9.tar.xz
gsoc2013-evolution-d91fa3b9901e778cf7814dd3f4f69f0e80d8eef9.tar.zst
gsoc2013-evolution-d91fa3b9901e778cf7814dd3f4f69f0e80d8eef9.zip
Fixes #332409 Reset the ecal to NULL. If the default client does not exist
2006-04-24 Chenthill Palanisamy <pchenthill@novell.com> 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
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r--calendar/gui/e-calendar-view.c4
1 files changed, 2 insertions, 2 deletions
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);