[evolution-data-server] Bug #655111 - Modify allday to date-time event keeps VALUE=DATE parameter
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #655111 - Modify allday to date-time event keeps VALUE=DATE parameter
- Date: Thu, 1 Sep 2011 07:59:38 +0000 (UTC)
commit e24db9a8493552d9e0715ab5f5bf7d91d6b7c045
Author: Milan Crha <mcrha redhat com>
Date: Thu Sep 1 09:59:13 2011 +0200
Bug #655111 - Modify allday to date-time event keeps VALUE=DATE parameter
calendar/libecal/e-cal-component.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/calendar/libecal/e-cal-component.c b/calendar/libecal/e-cal-component.c
index 2d3e60e..0d27fea 100644
--- a/calendar/libecal/e-cal-component.c
+++ b/calendar/libecal/e-cal-component.c
@@ -2446,6 +2446,9 @@ set_datetime (ECalComponent *comp, struct datetime *datetime,
dt->value->is_utc = 0;
if (datetime->prop) {
+ /* make sure no VALUE property is left if not needed */
+ icalproperty_remove_parameter (datetime->prop, ICAL_VALUE_PARAMETER);
+
(* prop_set_func) (datetime->prop, *dt->value);
} else {
datetime->prop = (* prop_new_func) (*dt->value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]