[evolution] I#1030 - Calendar: Component editor shows incomplete RRULE



commit 11e236df6279e7bcc21c1ced59ab0b516ae99244
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 6 09:57:50 2020 +0200

    I#1030 - Calendar: Component editor shows incomplete RRULE
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1030

 src/calendar/gui/e-comp-editor-page-recurrence.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/calendar/gui/e-comp-editor-page-recurrence.c 
b/src/calendar/gui/e-comp-editor-page-recurrence.c
index bf7791742c..6af77a907c 100644
--- a/src/calendar/gui/e-comp-editor-page-recurrence.c
+++ b/src/calendar/gui/e-comp-editor-page-recurrence.c
@@ -887,13 +887,15 @@ static void
 ecep_recurrence_set_special_defaults (ECompEditorPageRecurrence *page_recurrence,
                                      ICalComponent *component)
 {
-       guint8 mask;
-
        g_return_if_fail (E_IS_COMP_EDITOR_PAGE_RECURRENCE (page_recurrence));
 
-       mask = ecep_recurrence_get_start_weekday_mask (component);
+       if (!page_recurrence->priv->weekday_day_mask) {
+               guint8 mask;
+
+               mask = ecep_recurrence_get_start_weekday_mask (component);
 
-       page_recurrence->priv->weekday_day_mask = mask;
+               page_recurrence->priv->weekday_day_mask = mask;
+       }
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]