[evolution] Bug 707521 - Editing detached instance in editor removes Recurrence ID
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 707521 - Editing detached instance in editor removes Recurrence ID
- Date: Tue, 28 Apr 2015 15:05:14 +0000 (UTC)
commit 3caa7af1fb858deef769781217b3d996303bf766
Author: Milan Crha <mcrha redhat com>
Date: Tue Apr 28 17:03:58 2015 +0200
Bug 707521 - Editing detached instance in editor removes Recurrence ID
calendar/gui/dialogs/recurrence-page.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index 179f021..89daa42 100644
--- a/calendar/gui/dialogs/recurrence-page.c
+++ b/calendar/gui/dialogs/recurrence-page.c
@@ -974,10 +974,14 @@ fill_component (RecurrencePage *rpage,
e_cal_component_set_exrule_list (comp, NULL);
simple_recur_to_comp (rpage, comp);
} else {
+ gboolean had_recurrences = e_cal_component_has_recurrences (comp);
+
e_cal_component_set_rdate_list (comp, NULL);
e_cal_component_set_rrule_list (comp, NULL);
e_cal_component_set_exrule_list (comp, NULL);
- e_cal_component_set_recurid (comp, NULL);
+
+ if (had_recurrences)
+ e_cal_component_set_recurid (comp, NULL);
}
/* Set exceptions */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]