aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-01-17 04:46:53 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-01-17 04:46:53 +0800
commit4737f9780ccce5fcf5c61f63bec2a695e3a6071d (patch)
treed70c8beaa57034e747d0cbd9f7819a957e8156bd /calendar/gui
parent32321c85aa79d348b29be835a9387d62ed0d6eb4 (diff)
downloadgsoc2013-evolution-4737f9780ccce5fcf5c61f63bec2a695e3a6071d.tar.gz
gsoc2013-evolution-4737f9780ccce5fcf5c61f63bec2a695e3a6071d.tar.zst
gsoc2013-evolution-4737f9780ccce5fcf5c61f63bec2a695e3a6071d.zip
we actually want to not return on any error as well (like NOT FOUND)
2004-01-16 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (find_server): we actually want to not return on any error as well (like NOT FOUND) svn path=/trunk/; revision=24285
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-itip-control.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index 83f6abf2d2..5823ad7cbe 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -188,14 +188,20 @@ 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, NULL)) {
- icalcomponent_free (icalcomp);
-
- return ecal;
+ 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);
+
+ return ecal;
+ }
+
+ g_clear_error (&error);
}
}
}