diff options
Diffstat (limited to 'calendar/gui/component-factory.c')
-rw-r--r-- | calendar/gui/component-factory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/component-factory.c b/calendar/gui/component-factory.c index a9cc8a89f9..b4a2b3ab89 100644 --- a/calendar/gui/component-factory.c +++ b/calendar/gui/component-factory.c @@ -506,6 +506,8 @@ static char * get_data_uri (const char *uri, CalComponentVType vtype) { if (uri) { + if (*uri != '/' && strncmp (uri, "file:", 5) != 0) + return g_strdup (uri); if (vtype == CAL_COMPONENT_EVENT) return g_concat_dir_and_file (uri, "calendar.ics"); else if (vtype == CAL_COMPONENT_TODO) |