[evolution-mapi/gnome-3-16] Make sure collection child sources are enabled when created



commit 422fb43f25682ae3eb30c3f89e9601424f2191ac
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]