[evolution-ews] All to call the remove_object not only from D_BUS context
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] All to call the remove_object not only from D_BUS context
- Date: Wed, 1 Jun 2011 09:31:25 +0000 (UTC)
commit 94f7d5ff70b9e0431065d3a31f1e010b23fe267d
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Wed Jun 1 12:06:03 2011 +0300
All to call the remove_object not only from D_BUS context
src/calendar/e-cal-backend-ews.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 07c69d9..cbd7259 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -848,7 +848,8 @@ ews_cal_remove_object_cb (GObject *object, GAsyncResult *res, gpointer user_data
error->code = OtherError;
}
- e_data_cal_notify_remove (remove_data->cal, remove_data->context, error);
+ if (remove_data->context)
+ e_data_cal_notify_remove (remove_data->cal, remove_data->context, error);
g_free (remove_data->item_id.id);
g_free (remove_data->item_id.change_key);
@@ -945,7 +946,8 @@ e_cal_backend_ews_remove_object (ECalBackend *backend, EDataCal *cal, EServerMet
return;
exit:
- e_data_cal_notify_remove (cal, context, error);
+ if (context)
+ e_data_cal_notify_remove (cal, context, error);
}
static icaltimezone * resolve_tzid (const gchar *tzid, gpointer user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]