[evolution-data-server] Bug 772095 - Don't check available sources for disabled accounts (Google/ownCloud)
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 772095 - Don't check available sources for disabled accounts (Google/ownCloud)
- Date: Wed, 12 Oct 2016 16:47:51 +0000 (UTC)
commit 2d494f67ff629b2e77b7831cabfb03db1e92cc37
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 12 18:48:15 2016 +0200
Bug 772095 - Don't check available sources for disabled accounts (Google/ownCloud)
src/modules/google-backend/module-google-backend.c | 2 +-
.../owncloud-backend/module-owncloud-backend.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/modules/google-backend/module-google-backend.c
b/src/modules/google-backend/module-google-backend.c
index 8bbbb48..1141fc6 100644
--- a/src/modules/google-backend/module-google-backend.c
+++ b/src/modules/google-backend/module-google-backend.c
@@ -755,7 +755,7 @@ google_backend_populate (ECollectionBackend *backend)
/* Chain up to parent's populate() method. */
E_COLLECTION_BACKEND_CLASS (e_google_backend_parent_class)->populate (backend);
- if (e_source_collection_get_calendar_enabled (collection_extension)) {
+ if (e_source_get_enabled (source) && e_source_collection_get_calendar_enabled (collection_extension))
{
e_backend_schedule_credentials_required (E_BACKEND (backend),
E_SOURCE_CREDENTIALS_REASON_REQUIRED, NULL, 0, NULL, NULL, G_STRFUNC);
}
diff --git a/src/modules/owncloud-backend/module-owncloud-backend.c
b/src/modules/owncloud-backend/module-owncloud-backend.c
index 900e241..8fc5b0f 100644
--- a/src/modules/owncloud-backend/module-owncloud-backend.c
+++ b/src/modules/owncloud-backend/module-owncloud-backend.c
@@ -439,8 +439,9 @@ owncloud_backend_populate (ECollectionBackend *collection)
source = e_backend_get_source (E_BACKEND (collection));
collection_extension = e_source_get_extension (source, E_SOURCE_EXTENSION_COLLECTION);
- if (e_source_collection_get_calendar_enabled (collection_extension) ||
- e_source_collection_get_contacts_enabled (collection_extension)) {
+ if (e_source_get_enabled (source) && (
+ e_source_collection_get_calendar_enabled (collection_extension) ||
+ e_source_collection_get_contacts_enabled (collection_extension))) {
e_backend_schedule_credentials_required (E_BACKEND (collection),
E_SOURCE_CREDENTIALS_REASON_REQUIRED, NULL, 0, NULL, NULL, G_STRFUNC);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]