diff options
author | Milan Crha <mcrha@redhat.com> | 2011-07-25 20:45:34 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-07-25 20:45:34 +0800 |
commit | fbee43e5924cee79690e5ba16c2341eabfdecd3c (patch) | |
tree | 11f65304a91172ad9010510f5048ff689d5af927 /calendar/importers | |
parent | 15673ff05eec3c049940ad95a6972016173c889b (diff) | |
download | gsoc2013-evolution-fbee43e5924cee79690e5ba16c2341eabfdecd3c.tar gsoc2013-evolution-fbee43e5924cee79690e5ba16c2341eabfdecd3c.tar.gz gsoc2013-evolution-fbee43e5924cee79690e5ba16c2341eabfdecd3c.tar.bz2 gsoc2013-evolution-fbee43e5924cee79690e5ba16c2341eabfdecd3c.tar.lz gsoc2013-evolution-fbee43e5924cee79690e5ba16c2341eabfdecd3c.tar.xz gsoc2013-evolution-fbee43e5924cee79690e5ba16c2341eabfdecd3c.tar.zst gsoc2013-evolution-fbee43e5924cee79690e5ba16c2341eabfdecd3c.zip |
Bug #654261 - Importing ics files into Evolution fails silently
Diffstat (limited to 'calendar/importers')
-rw-r--r-- | calendar/importers/icalendar-importer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index c523e57e39..01b5d8349c 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -283,10 +283,14 @@ ivcal_getwidget (EImport *ei, EImportTarget *target, EImportImporter *im) ESource *primary; GtkWidget *scrolled; struct _selector_data *sd; + GError *error = NULL; /* FIXME Better error handling */ - if (!e_cal_client_get_sources (&source_list, import_type_map[i], NULL)) + if (!e_client_utils_get_sources (&source_list, import_type_map[i], &error)) { + g_debug ("%s: Failed to get source of '%s' (%d): %s", G_STRFUNC, import_type_strings[i], i, error ? error->message : "Unknown error"); + g_clear_error (&error); continue; + } selector = e_source_selector_new (source_list); e_source_selector_show_selection (E_SOURCE_SELECTOR (selector), FALSE); |