[evolution-ews] Fix ews_cal_component_get_item_id to not stop after found one of the requested itemid or changekey
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fix ews_cal_component_get_item_id to not stop after found one of the requested itemid or changekey
- Date: Sun, 31 Jul 2011 16:43:08 +0000 (UTC)
commit 1020c45652e1840613aa9d2f1c8dd0b1323b191c
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Sun Jul 31 19:28:12 2011 +0300
Fix ews_cal_component_get_item_id to not stop after found one of the requested itemid or changekey
src/calendar/e-cal-backend-ews.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 178c61c..3b33267 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -576,15 +576,10 @@ ews_cal_component_get_item_id (ECalComponent *comp, gchar **itemid, gchar **chan
x_name = icalproperty_get_x_name (prop);
x_val = icalproperty_get_x (prop);
- if (!id && !g_ascii_strcasecmp (x_name, "X-EVOLUTION-ITEMID")) {
+ if (!id && !g_ascii_strcasecmp (x_name, "X-EVOLUTION-ITEMID"))
id = g_strdup (x_val);
- break;
- } else if (changekey && !ck && !g_ascii_strcasecmp (x_name, "X-EVOLUTION-CHANGEKEY")) {
+ else if (changekey && !ck && !g_ascii_strcasecmp (x_name, "X-EVOLUTION-CHANGEKEY"))
ck = g_strdup (x_val);
- break;
- }
- if (id && (ck || !changekey))
- break;
prop = icalcomponent_get_next_property (e_cal_component_get_icalcomponent (comp),
ICAL_X_PROPERTY);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]