[evolution-data-server] Fix regression about removal notification introduced in bug #670457



commit a7aac1f7b4958131a158491492b5a5536957303e
Author: Milan Crha <mcrha redhat com>
Date:   Thu Apr 12 14:28:12 2012 +0200

    Fix regression about removal notification introduced in bug #670457

 calendar/libedata-cal/e-data-cal.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/calendar/libedata-cal/e-data-cal.c b/calendar/libedata-cal/e-data-cal.c
index 680baf4..e3123cd 100644
--- a/calendar/libedata-cal/e-data-cal.c
+++ b/calendar/libedata-cal/e-data-cal.c
@@ -1273,11 +1273,14 @@ e_data_cal_respond_remove_objects (EDataCal *cal,
 		g_error_free (error);
 	else {
 		const GSList *lid = ids, *lold = old_components, *lnew = new_components;
-		while (lid && lold && lnew) {
-			e_cal_backend_notify_component_removed (cal->priv->backend, lid->data, lold->data, lnew->data);
+		while (lid && lold) {
+			e_cal_backend_notify_component_removed (cal->priv->backend, lid->data, lold->data, lnew ? lnew->data : NULL);
+
 			lid = lid->next;
 			lold = lold->next;
-			lnew = lnew->next;
+
+			if (lnew)
+				lnew = lnew->next;
 		}
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]