[evolution-data-server] [local book] Failure of contact remove not	propagated to UI
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [evolution-data-server] [local book] Failure of contact remove not	propagated to UI
- Date: Mon, 13 Apr 2015 16:10:19 +0000 (UTC)
commit 132c16fdf1ed63ea95f8535e9dfbaf7469cc8bbd
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]