From 46608598c6d5e4e51cd709bff2db934557b3628e Mon Sep 17 00:00:00 2001 From: Gilbert Fang Date: Fri, 19 Sep 2003 10:26:30 +0000 Subject: remove the "addressbook.db.summary" correctly. #48538 2003-09-19 Gilbert Fang * addressbook/gui/component/addressbook-component.c (xfer_folder): remove the "addressbook.db.summary" correctly. #48538 svn path=/trunk/; revision=22624 --- addressbook/gui/component/addressbook-component.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'addressbook/gui/component') diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index b49dec3005..cdfeeb9755 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -299,6 +299,7 @@ xfer_folder (EvolutionShellComponent *shell_component, GnomeVFSURI *src_uri; GnomeVFSURI *dest_uri; GnomeVFSResult result; + GNOME_Evolution_ShellComponentListener_Result e_result; CORBA_exception_init (&ev); @@ -342,17 +343,19 @@ xfer_folder (EvolutionShellComponent *shell_component, return; } - result = xfer_file (src_uri, dest_uri, "addressbook.db", remove_source); + e_result = xfer_file (src_uri, dest_uri, "addressbook.db", remove_source); - if ((result == GNOME_Evolution_ShellComponentListener_OK) && remove_source) { + if ((e_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); + if (result != GNOME_VFS_OK && result != GNOME_VFS_ERROR_NOT_FOUND) + e_result = GNOME_Evolution_ShellComponentListener_PERMISSION_DENIED; g_free (summary_uri); } - GNOME_Evolution_ShellComponentListener_notifyResult (listener, result, &ev); + GNOME_Evolution_ShellComponentListener_notifyResult (listener, e_result, &ev); gnome_vfs_uri_unref (src_uri); gnome_vfs_uri_unref (dest_uri); -- cgit v1.2.3