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



commit 4cface51c4e54e25dc7bc1251ee310f8b73e2fff
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 e1416d433..2dd109b39 100644
--- a/src/calendar/libecal/e-reminder-watcher.c
+++ b/src/calendar/libecal/e-reminder-watcher.c
@@ -3046,13 +3046,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]