aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-offline-sync.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-05-21 03:08:26 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-05-21 03:08:26 +0800
commitdfbf40c628f9393d5c11a1b1c6717018f6c7a14a (patch)
treea7cd917602b785fdc0d8926e42dd87f295233a8b /shell/e-shell-offline-sync.c
parent13c9d214fa4b93a0c3ae08a533a8605b13a323b1 (diff)
downloadgsoc2013-evolution-dfbf40c628f9393d5c11a1b1c6717018f6c7a14a.tar
gsoc2013-evolution-dfbf40c628f9393d5c11a1b1c6717018f6c7a14a.tar.gz
gsoc2013-evolution-dfbf40c628f9393d5c11a1b1c6717018f6c7a14a.tar.bz2
gsoc2013-evolution-dfbf40c628f9393d5c11a1b1c6717018f6c7a14a.tar.lz
gsoc2013-evolution-dfbf40c628f9393d5c11a1b1c6717018f6c7a14a.tar.xz
gsoc2013-evolution-dfbf40c628f9393d5c11a1b1c6717018f6c7a14a.tar.zst
gsoc2013-evolution-dfbf40c628f9393d5c11a1b1c6717018f6c7a14a.zip
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
Diffstat (limited to 'shell/e-shell-offline-sync.c')
-rw-r--r--shell/e-shell-offline-sync.c5
1 files changed, 5 insertions, 0 deletions
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));