[gnome-calendar/fix-shifting-events: 18/19] Revert "event-editor/dialog: Don't show MOD_ALL if schedule changed"




commit c973a12caa8d0cd16d83a4f21bf35bfed4e52c76
Author: Ray Strode <rstrode redhat com>
Date:   Fri Oct 14 14:40:11 2022 -0400

    Revert "event-editor/dialog: Don't show MOD_ALL if schedule changed"
    
    This reverts commit db9ec7b84278bcfa22a3279d47f4009076e7bac6.

 src/gui/event-editor/gcal-event-editor-dialog.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/gui/event-editor/gcal-event-editor-dialog.c b/src/gui/event-editor/gcal-event-editor-dialog.c
index 77b01218..0247cbad 100644
--- a/src/gui/event-editor/gcal-event-editor-dialog.c
+++ b/src/gui/event-editor/gcal-event-editor-dialog.c
@@ -328,7 +328,6 @@ on_done_button_clicked_cb (GtkButton             *button,
   GcalCalendar *selected_calendar;
   GcalCalendar *calendar;
   GcalManager *manager;
-  gboolean schedule_changed;
   gboolean was_recurrent;
   gint i;
 
@@ -338,7 +337,6 @@ on_done_button_clicked_cb (GtkButton             *button,
   if (gcal_calendar_is_read_only (calendar))
     GCAL_GOTO (out);
 
-  schedule_changed = FALSE;
   if (!self->event_is_new)
     {
       gboolean anything_changed = FALSE;
@@ -349,16 +347,8 @@ on_done_button_clicked_cb (GtkButton             *button,
 
           section_changed = gcal_event_editor_section_changed (self->sections[i]);
           anything_changed |= section_changed;
-
-          if (self->sections[i] == self->schedule_section)
-            schedule_changed = section_changed;
         }
 
-      GCAL_TRACE_MSG ("Event %s changed: %d, schedule changed: %d",
-                      gcal_event_get_uid (self->event),
-                      anything_changed,
-                      schedule_changed);
-
       if (!anything_changed)
         goto out;
     }
@@ -396,7 +386,7 @@ on_done_button_clicked_cb (GtkButton             *button,
     {
       gcal_utils_ask_recurrence_modification_type (GTK_WIDGET (self),
                                                    self->event,
-                                                   !schedule_changed,
+                                                   TRUE,
                                                    on_ask_recurrence_response_save_cb,
                                                    self);
       return;


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