[evolution-data-server/gnome-3-30] I#50 - [Reminders] Ignore all errors on a reminder dismiss



commit 1f5914950f31c700c47255f8757fc1c37b1dd673
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 22 08:57:44 2018 +0200

    I#50 - [Reminders] Ignore all errors on a reminder dismiss
    
    Closes https://gitlab.gnome.org/GNOME/evolution-data-server/issues/50

 src/calendar/libecal/e-reminder-watcher.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/calendar/libecal/e-reminder-watcher.c b/src/calendar/libecal/e-reminder-watcher.c
index 03d40af86..f03bf31e0 100644
--- a/src/calendar/libecal/e-reminder-watcher.c
+++ b/src/calendar/libecal/e-reminder-watcher.c
@@ -3044,13 +3044,9 @@ e_reminder_watcher_dismiss_one_sync (ECalClient *client,
                        local_error ? local_error->message : success ? "" : "Unknown error",
                        (!success || local_error) ? ")" : "");
 
-               if (g_error_matches (local_error, E_CLIENT_ERROR, E_CLIENT_ERROR_NOT_SUPPORTED) ||
-                   g_error_matches (local_error, E_CAL_CLIENT_ERROR, E_CAL_CLIENT_ERROR_OBJECT_NOT_FOUND)) {
-                       success = TRUE;
-                       g_clear_error (&local_error);
-               } else if (local_error) {
-                       g_propagate_error (error, local_error);
-               }
+               /* Ignore all errors here, users cannot usually do anything with it anyway */
+               success = TRUE;
+               g_clear_error (&local_error);
 
                e_cal_component_free_id (id);
        }


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