[gnome-calendar/gnome-3-36] edit-dialog: Commit sequence after poking at component



commit c5f9fb51da991227145daf2ca650635b02458ba3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Jun 17 21:21:18 2020 -0300

    edit-dialog: Commit sequence after poking at component
    
    GcalEditDialog code pre-dates GcalEvent and apply changes directly
    to the underlying ECalComponent. However, it doesn't commit the
    sequence after doing so, which opens the door for doom.
    
    Commit the component sequence after changing the recurrence data.

 src/gui/gcal-edit-dialog.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gui/gcal-edit-dialog.c b/src/gui/gcal-edit-dialog.c
index 46344c9c..ae2b6714 100644
--- a/src/gui/gcal-edit-dialog.c
+++ b/src/gui/gcal-edit-dialog.c
@@ -387,6 +387,7 @@ remove_recurrence_properties (GcalEvent *event)
 
   e_cal_component_set_recurid (comp, NULL);
   e_cal_component_set_rrules (comp, NULL);
+  e_cal_component_commit_sequence (comp);
 }
 
 static gchar*


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