fixed URI construction, which was preventing importing into the root

2001-10-29  Rodrigo Moya <rodrigo@ximian.com>

	* 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
This commit is contained in:
Rodrigo Moya
2001-10-29 20:08:39 +00:00
committed by Rodrigo Moya
parent df5427ac09
commit f828accd31
2 changed files with 11 additions and 2 deletions
+6
View File
@@ -1,3 +1,9 @@
2001-10-29 Rodrigo Moya <rodrigo@ximian.com>
* importers/icalendar-importer.c (load_file_fn): fixed URI
construction, which was preventing importing into the root
calendar (~/evo/local/Calendar/)
2001-10-29 JP Rosevear <jpr@ximian.com>
* conduits/calendar/calendar-conduit.c (is_all_day): handle date
+5 -2
View File
@@ -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;