aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorSuman Manjunath <msuman@src.gnome.org>2008-10-13 18:24:07 +0800
committerSuman Manjunath <msuman@src.gnome.org>2008-10-13 18:24:07 +0800
commita3b38ef1293fa8c8f162be5310e5b3dec8782a2e (patch)
tree71abf784120c4ad329a10d0868a934569425045a /calendar/gui/dialogs
parent1f9fc79ef8f6a5391d51b4970b8d4c367f8edc52 (diff)
downloadgsoc2013-evolution-a3b38ef1293fa8c8f162be5310e5b3dec8782a2e.tar
gsoc2013-evolution-a3b38ef1293fa8c8f162be5310e5b3dec8782a2e.tar.gz
gsoc2013-evolution-a3b38ef1293fa8c8f162be5310e5b3dec8782a2e.tar.bz2
gsoc2013-evolution-a3b38ef1293fa8c8f162be5310e5b3dec8782a2e.tar.lz
gsoc2013-evolution-a3b38ef1293fa8c8f162be5310e5b3dec8782a2e.tar.xz
gsoc2013-evolution-a3b38ef1293fa8c8f162be5310e5b3dec8782a2e.tar.zst
gsoc2013-evolution-a3b38ef1293fa8c8f162be5310e5b3dec8782a2e.zip
Fix for bug #424818 (bugzilla.novell.com) - Integrate the mark-calendar-offline plugin into the main code as we already have a similar per-calendar option which does the same thing.
svn path=/trunk/; revision=36610
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/calendar-setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c
index f7ab2ee846..724206a072 100644
--- a/calendar/gui/dialogs/calendar-setup.c
+++ b/calendar/gui/dialogs/calendar-setup.c
@@ -259,7 +259,8 @@ eccp_general_offline (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent,
GtkWidget *offline_setting = NULL;
const char *offline_sync;
int row;
- gboolean is_local = g_str_has_prefix (e_source_group_peek_base_uri (sdialog->source_group), "file:");
+ const char *base_uri = e_source_group_peek_base_uri (sdialog->source_group);
+ gboolean is_local = base_uri && (g_str_has_prefix (base_uri, "file://") || g_str_has_prefix (base_uri, "contacts://"));
offline_sync = e_source_get_property (sdialog->source, "offline_sync");
if (old)
return old;