[evolution-data-server/gnome-3-16] [local book] Failure of contact remove not propagated to UI



commit aa2442a24550664a8d40b5df78f15621cfd69715
Author: Milan Crha <mcrha redhat com>
Date:   Mon Apr 13 18:09:50 2015 +0200

    [local book] Failure of contact remove not propagated to UI
    
    Typo in the code, which prevented the error to be propagated
    back to the caller.

 addressbook/backends/file/e-book-backend-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
index b0dbe79..ed8dfd5 100644
--- a/addressbook/backends/file/e-book-backend-file.c
+++ b/addressbook/backends/file/e-book-backend-file.c
@@ -1495,7 +1495,7 @@ book_backend_file_remove_contacts_sync (EBookBackend *backend,
                /* Remove from summary as well */
                if (!e_book_sqlite_remove_contacts (bf->priv->sqlitedb, removed_ids,
                                                    cancellable, &local_error)) {
-                       if (!local_error) {
+                       if (local_error) {
                                g_warning ("Failed to remove contacts: %s", local_error->message);
                                g_propagate_error (error, local_error);
                        }


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