aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/migration.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-03-27 04:40:54 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-03-27 04:40:54 +0800
commit1c420e296a6c33885b0516bc16abce77f794e487 (patch)
treeba3b6f96e494b660080f0680ba88a83ef2e33fa0 /calendar/gui/migration.c
parentf231743ff15a88a11d8a9140b357ecef4ca5985b (diff)
downloadgsoc2013-evolution-1c420e296a6c33885b0516bc16abce77f794e487.tar
gsoc2013-evolution-1c420e296a6c33885b0516bc16abce77f794e487.tar.gz
gsoc2013-evolution-1c420e296a6c33885b0516bc16abce77f794e487.tar.bz2
gsoc2013-evolution-1c420e296a6c33885b0516bc16abce77f794e487.tar.lz
gsoc2013-evolution-1c420e296a6c33885b0516bc16abce77f794e487.tar.xz
gsoc2013-evolution-1c420e296a6c33885b0516bc16abce77f794e487.tar.zst
gsoc2013-evolution-1c420e296a6c33885b0516bc16abce77f794e487.zip
make sure we always sync the source list and just do it once; unref the
2004-03-26 JP Rosevear <jpr@ximian.com> * gui/migration.c (migrate_calendars): make sure we always sync the source list and just do it once; unref the sources we get (migrate_tasks): make sure we always sync the source list and just do it once svn path=/trunk/; revision=25202
Diffstat (limited to 'calendar/gui/migration.c')
-rw-r--r--calendar/gui/migration.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c
index 979c4822af..731affe6d8 100644
--- a/calendar/gui/migration.c
+++ b/calendar/gui/migration.c
@@ -594,8 +594,6 @@ migrate_calendars (CalendarComponent *component, int major, int minor, int revis
}
g_free (local_cal_folder);
-
- e_source_list_sync (calendar_component_peek_source_list (component), NULL);
dialog_close ();
}
@@ -605,8 +603,6 @@ migrate_calendars (CalendarComponent *component, int major, int minor, int revis
group = create_calendar_contact_source (calendar_component_peek_source_list (component));
g_object_unref (group);
-
- e_source_list_sync (calendar_component_peek_source_list (component), NULL);
}
if (minor == 5 && revision < 5) {
@@ -635,6 +631,17 @@ migrate_calendars (CalendarComponent *component, int major, int minor, int revis
}
+ e_source_list_sync (calendar_component_peek_source_list (component), NULL);
+
+ if (on_this_computer)
+ g_object_unref (on_this_computer);
+ if (on_the_web)
+ g_object_unref (on_the_web);
+ if (contacts)
+ g_object_unref (contacts);
+ if (personal_source)
+ g_object_unref (personal_source);
+
return retval;
}
@@ -708,13 +715,13 @@ migrate_tasks (TasksComponent *component, int major, int minor, int revision)
}
g_free (local_task_folder);
-
- e_source_list_sync (tasks_component_peek_source_list (component), NULL);
dialog_close ();
}
}
+ e_source_list_sync (tasks_component_peek_source_list (component), NULL);
+
if (on_this_computer)
g_object_unref (on_this_computer);
if (personal_source)