aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/importers/icalendar-importer.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/importers/icalendar-importer.c')
-rw-r--r--calendar/importers/icalendar-importer.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c
index 69e0e554c8..118c0aaa19 100644
--- a/calendar/importers/icalendar-importer.c
+++ b/calendar/importers/icalendar-importer.c
@@ -607,21 +607,15 @@ gnome_calendar_import_data_fn (EvolutionIntelligentImporter *ii,
return;
}
- /* FIXME */
/* Try to open the default calendar & tasks folders. */
if (ici->do_calendar) {
- if (!e_cal_open_default (&calendar_client, E_CAL_SOURCE_TYPE_EVENT, NULL))
- goto out;
-
- if (!e_cal_open (calendar_client, FALSE, NULL))
+ calendar_client = auth_new_cal_from_default (E_CAL_SOURCE_TYPE_EVENT);
goto out;
}
if (ici->do_tasks) {
- if (!e_cal_open_default (&tasks_client, E_CAL_SOURCE_TYPE_TODO, NULL))
- goto out;
-
- if (!e_cal_open (tasks_client, FALSE, NULL))
+ tasks_client = auth_new_cal_from_default (E_CAL_SOURCE_TYPE_TODO);
+ if (!tasks_client)
goto out;
}