event-editor: Do not apply section that doesn't changed
Fix https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1028
This commit is contained in:
@@ -476,7 +476,10 @@ on_done_button_clicked_cb (GtkButton *button,
|
|||||||
was_recurrent = gcal_event_has_recurrence (self->event);
|
was_recurrent = gcal_event_has_recurrence (self->event);
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS (self->sections); i++)
|
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)
|
if (calendar_changed)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user