[gnome-calendar/gbsneto/recurring-event-editing-fixes: 11/17] event-editor/dialog: Don't apply changes to readonly events
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/recurring-event-editing-fixes: 11/17] event-editor/dialog: Don't apply changes to readonly events
- Date: Fri, 14 Oct 2022 17:40:21 +0000 (UTC)
commit bc039e9f4c9cb54a4a43270a8bbdb1f9b426d00c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Oct 14 13:38:41 2022 -0300
event-editor/dialog: Don't apply changes to readonly events
In practice this never does anything relevant, because widgets are
insensitive, but it's better not to nonetheless.
src/gui/event-editor/gcal-event-editor-dialog.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/event-editor/gcal-event-editor-dialog.c b/src/gui/event-editor/gcal-event-editor-dialog.c
index 53aa3605..ea35cf0b 100644
--- a/src/gui/event-editor/gcal-event-editor-dialog.c
+++ b/src/gui/event-editor/gcal-event-editor-dialog.c
@@ -330,15 +330,15 @@ on_done_button_clicked_cb (GtkButton *button,
GcalManager *manager;
gint i;
- for (i = 0; i < G_N_ELEMENTS (self->sections); i++)
- gcal_event_editor_section_apply (self->sections[i]);
-
manager = gcal_context_get_manager (self->context);
calendar = gcal_event_get_calendar (self->event);
if (gcal_calendar_is_read_only (calendar))
GCAL_GOTO (out);
+ for (i = 0; i < G_N_ELEMENTS (self->sections); i++)
+ gcal_event_editor_section_apply (self->sections[i]);
+
selected_calendar = g_steal_pointer (&self->selected_calendar);
if (selected_calendar && calendar != selected_calendar)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]