[evolution-ews] I#145 - Calendar: Cannot create event with reminder "at the start"
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] I#145 - Calendar: Cannot create event with reminder "at the start"
- Date: Tue, 23 Feb 2021 10:23:54 +0000 (UTC)
commit 038186ccefd60f0242d4e919ec47290be931c0ac
Author: Milan Crha <mcrha redhat com>
Date: Tue Feb 23 11:22:41 2021 +0100
I#145 - Calendar: Cannot create event with reminder "at the start"
Closes https://gitlab.gnome.org/GNOME/evolution-ews/-/issues/145
src/EWS/calendar/e-cal-backend-ews-utils.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/EWS/calendar/e-cal-backend-ews-utils.c b/src/EWS/calendar/e-cal-backend-ews-utils.c
index 096a14e2..7312f388 100644
--- a/src/EWS/calendar/e-cal-backend-ews-utils.c
+++ b/src/EWS/calendar/e-cal-backend-ews-utils.c
@@ -1520,11 +1520,9 @@ convert_vevent_component_to_updatexml (ESoapMessage *msg,
const gchar *old_msdn_location_start = NULL, *old_msdn_location_end = NULL;
const gchar *msdn_location_start = NULL, *msdn_location_end = NULL;
gchar *rrule_value, *rrule_old_value;
- gboolean has_alarms, has_alarms_old;
gboolean dt_start_changed = FALSE, dt_end_changed = FALSE, dt_changed;
gboolean dt_start_changed_timezone_name = FALSE, dt_end_changed_timezone_name = FALSE;
gboolean satisfies, rsvp_requested = TRUE, is_all_day_event = FALSE;
- gint alarm = 0, alarm_old = 0;
gchar *recid;
/* Modifying a recurring meeting ? */
@@ -1588,13 +1586,15 @@ convert_vevent_component_to_updatexml (ESoapMessage *msg,
}
/*update alarm items*/
- has_alarms = e_cal_component_has_alarms (convert_data->comp);
- if (has_alarms) {
+ if (e_cal_component_has_alarms (convert_data->comp)) {
+ gint alarm, alarm_old = -1;
+ gboolean has_alarms_old;
+
alarm = ews_get_alarm (convert_data->comp);
has_alarms_old = e_cal_component_has_alarms (convert_data->old_comp);
if (has_alarms_old)
alarm_old = ews_get_alarm (convert_data->old_comp);
- if (!(alarm == alarm_old)) {
+ if (alarm != alarm_old || !has_alarms_old) {
gchar buf[20];
snprintf (buf, 20, "%d", alarm);
convert_vevent_property_to_updatexml (msg, "ReminderIsSet", "true", "item", NULL,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]