[evolution-kolab] EKolabBackend: Remove resources with e_source_remove_sync().



commit a8a1ac89d76a272650b1353c37921b4b081b7770
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Apr 15 09:14:25 2013 -0400

    EKolabBackend: Remove resources with e_source_remove_sync().
    
    Same issue as EWS in https://bugzilla.gnome.org/691937.

 src/collection/e-kolab-backend.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/collection/e-kolab-backend.c b/src/collection/e-kolab-backend.c
index 1e842ba..213c595 100644
--- a/src/collection/e-kolab-backend.c
+++ b/src/collection/e-kolab-backend.c
@@ -305,12 +305,8 @@ kolab_backend_delete_resource_sync (ECollectionBackend *backend,
 
        g_free (folder_path);
 
-       if (! success)
-               goto exit;
-
-       server = e_collection_backend_ref_server (backend);
-       e_source_registry_server_remove_source (server, source);
-       g_object_unref (server);
+       if (success)
+               success = e_source_remove_sync (source, cancellable, error);
 
  exit:
        if (koma != NULL)


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