[evolution-mapi] Make sure collection child sources are enabled when created



commit 3f5cd2d8a17eb982d3bdd6d5b548e56b59edefa2
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jun 17 18:15:39 2015 +0200

    Make sure collection child sources are enabled when created
    
    It could happen that the child sources were disabled, but when they
    were claimed again they were not enabled, which made them hidden
    for a user.

 src/collection/e-mapi-backend.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/collection/e-mapi-backend.c b/src/collection/e-mapi-backend.c
index 0eaafae..2a732da 100644
--- a/src/collection/e-mapi-backend.c
+++ b/src/collection/e-mapi-backend.c
@@ -198,6 +198,8 @@ mapi_backend_sync_folders_idle_cb (gpointer user_data)
 
                source = e_mapi_utils_get_source_for_folder (configured, sfd->profile, e_mapi_folder_get_id 
(folder));
                if (source) {
+                       e_source_set_enabled (source, TRUE);
+
                        if (g_strcmp0 (e_source_get_display_name (source), e_mapi_folder_get_name (folder)) 
!= 0)
                                e_source_set_display_name (source, e_mapi_folder_get_name (folder));
 
@@ -230,6 +232,7 @@ mapi_backend_sync_folders_idle_cb (gpointer user_data)
                                NULL,
                                NULL)) {
                                color_seed++;
+                               e_source_set_enabled (source, TRUE);
                                e_server_side_source_set_writable (E_SERVER_SIDE_SOURCE (source), TRUE);
                                e_server_side_source_set_remote_deletable (E_SERVER_SIDE_SOURCE (source), 
TRUE);
                                e_source_registry_server_add_source (server, source);


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