[evolution-data-server/gnome-3-4] Bug #672398 - CalDAV backend doesn't respect "Copy for offline" option
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-4] Bug #672398 - CalDAV backend doesn't respect "Copy for offline" option
- Date: Tue, 24 Apr 2012 12:47:04 +0000 (UTC)
commit c31a9ce9829939c164e02477dddc30a73092d4b2
Author: Milan Crha <mcrha redhat com>
Date: Tue Apr 24 14:46:39 2012 +0200
Bug #672398 - CalDAV backend doesn't respect "Copy for offline" option
calendar/backends/caldav/e-cal-backend-caldav.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/calendar/backends/caldav/e-cal-backend-caldav.c b/calendar/backends/caldav/e-cal-backend-caldav.c
index 62dc524..a3d83c5 100644
--- a/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -2482,10 +2482,7 @@ initialize_backend (ECalBackendCalDAV *cbdav,
g_signal_connect (G_OBJECT (source), "changed", G_CALLBACK (caldav_source_changed_cb), cbdav);
os_val = e_source_get_property (source, "offline_sync");
-
- if (!os_val || !g_str_equal (os_val, "1")) {
- cbdav->priv->do_offline = FALSE;
- }
+ cbdav->priv->do_offline = os_val && g_str_equal (os_val, "1");
os_val = e_source_get_property (source, "auth");
cbdav->priv->auth_required = os_val != NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]