From dfbf40c628f9393d5c11a1b1c6717018f6c7a14a Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 20 May 2002 19:08:26 +0000 Subject: Skip the folder if it doesn't have the can_sync_offline property set. * e-shell-offline-sync.c (sync_folder): Skip the folder if it doesn't have the can_sync_offline property set. svn path=/trunk/; revision=16948 --- shell/ChangeLog | 5 +++++ shell/e-shell-offline-sync.c | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index d9c431e1ab..8682a3c374 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2002-05-20 Ettore Perazzoli + + * e-shell-offline-sync.c (sync_folder): Skip the folder if it + doesn't have the can_sync_offline property set. + 2002-05-20 Ettore Perazzoli * e-corba-storage.c (impl_StorageListener_notifyFolderCreated): diff --git a/shell/e-shell-offline-sync.c b/shell/e-shell-offline-sync.c index b574dcf322..f48b4a9eb6 100644 --- a/shell/e-shell-offline-sync.c +++ b/shell/e-shell-offline-sync.c @@ -289,6 +289,11 @@ sync_folder (SyncData *sync_data, return; } + /* Don't attempt to sync folders that don't have the can_sync_offline + property set. */ + if (! e_folder_get_can_sync_offline (folder)) + return; + component_client = e_folder_type_registry_get_handler_for_type (e_shell_get_folder_type_registry (sync_data->shell), e_folder_get_type_string (folder)); -- cgit