aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2003-05-19 20:32:56 +0800
committerChris Toshok <toshok@src.gnome.org>2003-05-19 20:32:56 +0800
commitb9ad9cb66ff7836be5a5298abc767d64facf5d1c (patch)
treebe3b66ad4c7f237b13e72073b05669a1b4846344 /addressbook/gui
parent4357b9b71d8e1ba9f766ed78fee9b966daa48bb8 (diff)
downloadgsoc2013-evolution-b9ad9cb66ff7836be5a5298abc767d64facf5d1c.tar.gz
gsoc2013-evolution-b9ad9cb66ff7836be5a5298abc767d64facf5d1c.tar.zst
gsoc2013-evolution-b9ad9cb66ff7836be5a5298abc767d64facf5d1c.zip
i2003-05-19 Sean Gao <sean.gao@sun.com>
* gui/component/addressbook-component.c (xfer_folder): remove the summary if @remove_source is TRUE. Fixes 38084. svn path=/trunk/; revision=21240
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook-component.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index 04a1e3ebe7..ba18f65e63 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -343,7 +343,15 @@ xfer_folder (EvolutionShellComponent *shell_component,
}
result = xfer_file (src_uri, dest_uri, "addressbook.db", remove_source);
-
+
+ if ((result == GNOME_Evolution_ShellComponentListener_OK) && remove_source) {
+ char *summary_uri;
+
+ summary_uri = g_strconcat (source_physical_uri, "/addressbook.db.summary", NULL);
+ result = gnome_vfs_unlink (summary_uri);
+ g_free (summary_uri);
+ }
+
GNOME_Evolution_ShellComponentListener_notifyResult (listener, result, &ev);
gnome_vfs_uri_unref (src_uri);