[evolution-data-server/openismus-work-3-8: 95/121] EBookBackendFile implementing cursors fixup



commit 5df54eeb622e8d83182de160fc47c2e024a9c313
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Aug 19 14:43:38 2013 +0200

    EBookBackendFile implementing cursors fixup

 addressbook/backends/file/e-book-backend-file.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
index af81105..0bed7e6 100644
--- a/addressbook/backends/file/e-book-backend-file.c
+++ b/addressbook/backends/file/e-book-backend-file.c
@@ -837,18 +837,19 @@ do_create (EBookBackendFile *bf,
                }
        }
 
+       /* After adding any contacts, notify any cursors that the new contacts are added */
+       if (status != STATUS_ERROR) {
+               for (l = slist; l; l = l->next) {
+                       cursors_contact_added (bf, E_CONTACT (l->data));
+               }
+       }
+
        if (status != STATUS_ERROR && contacts != NULL) {
                *contacts = g_slist_reverse (slist);
        } else {
-
                if (contacts)
                        *contacts = NULL;
 
-               /* After adding any contacts, notify any cursors that the new contacts are added */
-               for (l = slist; l; l = l->next) {
-                       cursors_contact_added (bf, E_CONTACT (l->data));
-               }
-
                e_util_free_object_slist (slist);
        }
 


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