[evolution/gnome-41] Calendar: Cannot always remove custom reminder message



commit b1c027e22d269c3871d0d7bb969b34685ae10c72
Author: Milan Crha <mcrha redhat com>
Date:   Fri Nov 5 09:48:38 2021 +0100

    Calendar: Cannot always remove custom reminder message
    
    Make sure when no reminder custom message is set, to also unset
    it in the reminder component.

 src/calendar/gui/e-comp-editor-page-reminders.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/calendar/gui/e-comp-editor-page-reminders.c b/src/calendar/gui/e-comp-editor-page-reminders.c
index ab0b53c331..d1991f96bf 100644
--- a/src/calendar/gui/e-comp-editor-page-reminders.c
+++ b/src/calendar/gui/e-comp-editor-page-reminders.c
@@ -781,9 +781,13 @@ ecep_reminders_widgets_to_selected (ECompEditorPageReminders *page_reminders)
                                e_cal_component_alarm_take_description (alarm, description);
 
                                ecep_reminders_remove_needs_description_property (alarm);
+                       } else {
+                               ecep_reminders_add_needs_description_property (alarm);
                        }
 
                        g_free (text);
+               } else {
+                       ecep_reminders_add_needs_description_property (alarm);
                }
                break;
 
@@ -831,9 +835,13 @@ ecep_reminders_widgets_to_selected (ECompEditorPageReminders *page_reminders)
                                e_cal_component_alarm_take_description (alarm, description);
 
                                ecep_reminders_remove_needs_description_property (alarm);
+                       } else {
+                               ecep_reminders_add_needs_description_property (alarm);
                        }
 
                        g_free (text);
+               } else {
+                       ecep_reminders_add_needs_description_property (alarm);
                }
                } break;
 


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