diff options
author | JP Rosevear <jpr@ximian.com> | 2004-05-21 04:49:19 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-05-21 04:49:19 +0800 |
commit | da7b86e7cfb3bd790a28cdd04058e37a39065fff (patch) | |
tree | 9e0c7dec4f467611e440df14ee52f3ced7ae9edf /calendar/gui/e-itip-control.c | |
parent | 3205d67d1a715d90a78b79f52d813506eb650408 (diff) | |
download | gsoc2013-evolution-da7b86e7cfb3bd790a28cdd04058e37a39065fff.tar.gz gsoc2013-evolution-da7b86e7cfb3bd790a28cdd04058e37a39065fff.tar.zst gsoc2013-evolution-da7b86e7cfb3bd790a28cdd04058e37a39065fff.zip |
proper look for figuring out if the object is on the server
2004-05-20 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.c (find_server): proper look for figuring
out
if the object is on the server
svn path=/trunk/; revision=26022
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r-- | calendar/gui/e-itip-control.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 53dd7fbec6..5027e3953c 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -189,20 +189,14 @@ find_server (EItipControl *itip, ECalComponent *comp) ESource *source; ECal *ecal; icalcomponent *icalcomp; - GError *error = NULL; source = m->data; ecal = start_calendar_server (itip, source, priv->type); - if (ecal && e_cal_get_object (ecal, uid, NULL, &icalcomp, &error)) { - if (error && error->code == E_CALENDAR_STATUS_OK) { - icalcomponent_free (icalcomp); - g_error_free (error); + if (ecal && e_cal_get_object (ecal, uid, NULL, &icalcomp, NULL)) { + icalcomponent_free (icalcomp); - return ecal; - } - - g_clear_error (&error); + return ecal; } } } |