diff options
Diffstat (limited to 'plugins/calendar-file/calendar-file.c')
-rw-r--r-- | plugins/calendar-file/calendar-file.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/calendar-file/calendar-file.c b/plugins/calendar-file/calendar-file.c index f47ce2c8ac..193b486812 100644 --- a/plugins/calendar-file/calendar-file.c +++ b/plugins/calendar-file/calendar-file.c @@ -42,7 +42,8 @@ e_calendar_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data) ECalConfigTargetSource *t = (ECalConfigTargetSource *) data->target; ESource *source = t->source; char *uri_text; - + char *relative_uri; + uri_text = e_source_get_uri (source); if (strncmp (uri_text, "file", 4)) { g_free (uri_text); @@ -50,6 +51,13 @@ e_calendar_file_dummy (EPlugin *epl, EConfigHookItemFactoryData *data) return NULL; } + relative_uri = e_source_peek_relative_uri (source); + if (relative_uri && *relative_uri) { + g_free (uri_text); + + return NULL; + } + e_source_set_relative_uri (source, e_source_peek_uid (source)); uri_text = e_source_get_uri (source); |