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:
committed by
Rodrigo Moya
parent
df5427ac09
commit
f828accd31
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user