[evolution] EToDoPane: Do not pass recurrence ID when deleting all instances



commit 46093d1e095b66e60cf8a1680b59fd1544503194
Author: Milan Crha <mcrha redhat com>
Date:   Mon Apr 12 12:11:10 2021 +0200

    EToDoPane: Do not pass recurrence ID when deleting all instances
    
    The recurrence ID should not be used when deleting all instances,
    otherwise the views might not receive the notification about
    the removal, due to the used instance is not part of the view, but,
    more importantly, all instances do not have the recurrence ID set.

 src/calendar/gui/e-to-do-pane.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/calendar/gui/e-to-do-pane.c b/src/calendar/gui/e-to-do-pane.c
index 05f17c5579..fd31f5dc50 100644
--- a/src/calendar/gui/e-to-do-pane.c
+++ b/src/calendar/gui/e-to-do-pane.c
@@ -2093,7 +2093,7 @@ etdp_delete_common (EToDoPane *to_do_pane,
                rod = g_slice_new0 (RemoveOperationData);
                rod->client = g_object_ref (client);
                rod->uid = g_strdup (e_cal_component_id_get_uid (id));
-               rod->rid = g_strdup (e_cal_component_id_get_rid (id));
+               rod->rid = mod == E_CAL_OBJ_MOD_ALL ? NULL : g_strdup (e_cal_component_id_get_rid (id));
                rod->mod = mod;
 
                source = e_client_get_source (E_CLIENT (client));


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