From f828accd314674f31de652bf4cd5d0b5e136f9ab Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 29 Oct 2001 20:08:39 +0000 Subject: fixed URI construction, which was preventing importing into the root 2001-10-29 Rodrigo Moya * importers/icalendar-importer.c (load_file_fn): fixed URI construction, which was preventing importing into the root calendar (~/evo/local/Calendar/) svn path=/trunk/; revision=14358 --- calendar/importers/icalendar-importer.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'calendar/importers') diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index ab3cffcfa2..262c925b74 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -120,9 +120,12 @@ load_file_fn (EvolutionImporter *importer, char *parent; name = strrchr (folderpath, '/'); - if (!name) { + if (name == NULL || name == folderpath) { parent = g_strdup ("evolution/local/"); - name = folderpath; + if (folderpath[0] == '/') + name = folderpath + 1; + else + name = folderpath; } else { name += 1; -- cgit