diff options
author | JP Rosevear <jpr@ximian.com> | 2004-01-27 08:07:37 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-01-27 08:07:37 +0800 |
commit | fa9ea7766217e4a35ce489b9a780a0f145a40b42 (patch) | |
tree | 6537be8d8e8e86b0f1e9d8a13697658a38b9f91a /calendar/gui | |
parent | 3fcccfa8ba6b62dba55e6e5ed37f6bba65b59ac4 (diff) | |
download | gsoc2013-evolution-fa9ea7766217e4a35ce489b9a780a0f145a40b42.tar.gz gsoc2013-evolution-fa9ea7766217e4a35ce489b9a780a0f145a40b42.tar.zst gsoc2013-evolution-fa9ea7766217e4a35ce489b9a780a0f145a40b42.zip |
add the source to the group so it actually shows up
2004-01-26 JP Rosevear <jpr@ximian.com>
* gui/migration.c (migrate_ical_folder): add the source to the
group so it actually shows up
svn path=/trunk/; revision=24455
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/migration.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c index 9cb04167b2..fdc73eca7f 100644 --- a/calendar/gui/migration.c +++ b/calendar/gui/migration.c @@ -305,19 +305,21 @@ migrate_ical_folder (char *old_path, ESourceGroup *dest_group, char *source_name new_source = e_source_new (source_name, source_name); e_source_set_relative_uri (new_source, e_source_peek_uid (new_source)); - e_source_set_group (new_source, dest_group); + e_source_group_add_source (dest_group, new_source, -1); dialog_set_folder_name (source_name); old_ecal = e_cal_new (old_source, type); if (!e_cal_open (old_ecal, TRUE, &error)) { - g_warning ("failed to load source ecal for migration: `%s'", error->message); + g_warning ("failed to load source ecal for migration: '%s' (%s)", error->message, + e_source_get_uri (old_source)); goto finish; } new_ecal = e_cal_new (new_source, type); if (!e_cal_open (new_ecal, FALSE, &error)) { - g_warning ("failed to load destination ecal for migration: `%s'", error->message); + g_warning ("failed to load destination ecal for migration: '%s' (%s)", error->message, + e_source_get_uri (new_source)); goto finish; } @@ -326,7 +328,8 @@ migrate_ical_folder (char *old_path, ESourceGroup *dest_group, char *source_name finish: g_clear_error (&error); g_object_unref (old_ecal); - g_object_unref (new_ecal); + if (new_ecal) + g_object_unref (new_ecal); g_free (old_uri); return retval; |