[evolution/wip/webkit2] Bug 707521 - Editing detached instance in editor removes Recurrence ID



commit d38baebb1fb7001058adee9620020a480931744a
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]