From adb56d9c29e083bfcdb2e70b3d6a0f3cfe997e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Moreno?= Date: Sun, 12 Nov 2023 21:29:07 +0100 Subject: [PATCH] event-editor: Do not apply section that doesn't changed Fix https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1028 --- src/gui/event-editor/gcal-event-editor-dialog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/event-editor/gcal-event-editor-dialog.c b/src/gui/event-editor/gcal-event-editor-dialog.c index ce92c81c..cc23b933 100644 --- a/src/gui/event-editor/gcal-event-editor-dialog.c +++ b/src/gui/event-editor/gcal-event-editor-dialog.c @@ -476,7 +476,10 @@ on_done_button_clicked_cb (GtkButton *button, was_recurrent = gcal_event_has_recurrence (self->event); for (i = 0; i < G_N_ELEMENTS (self->sections); i++) - gcal_event_editor_section_apply (self->sections[i]); + { + if (gcal_event_editor_section_changed (self->sections[i])) + gcal_event_editor_section_apply (self->sections[i]); + } if (calendar_changed) {