diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2001-07-26 06:56:56 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2001-07-26 06:56:56 +0800 |
commit | 959c0e424c5625154dfe778c8d8d851df1524e68 (patch) | |
tree | 6d50cc1970f6ea9e5860d946e853e3f3febfdbdc /calendar/cal-client | |
parent | 8458c070e057e77c1c84b125b3000a408c7dae6f (diff) | |
download | gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.gz gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.bz2 gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.lz gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.xz gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.zst gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.zip |
check type of component before actually pasting. Deal with VCALENDAR
2001-07-25 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-day-view.c (selection_received_cb): check type of component
before actually pasting.
Deal with VCALENDAR components also (fixes bug #5140)
* gui/e-week-view.c (selection_received_cb): ditto
* cal-client/cal-client.c (cal_client_update_object): check the return
value from cal_component_get_as_string and don't call
GNOME_Evolution_Calendar_Cal_updateObjects if NULL
svn path=/trunk/; revision=11418
Diffstat (limited to 'calendar/cal-client')
-rw-r--r-- | calendar/cal-client/cal-client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c index 4d2ba2805b..601686b3bc 100644 --- a/calendar/cal-client/cal-client.c +++ b/calendar/cal-client/cal-client.c @@ -1867,6 +1867,8 @@ cal_client_update_object (CalClient *client, CalComponent *comp) cal_component_commit_sequence (comp); obj_string = cal_client_get_component_as_string (client, comp); + if (obj_string == NULL) + return FALSE; CORBA_exception_init (&ev); GNOME_Evolution_Calendar_Cal_updateObjects (priv->cal, obj_string, &ev); |