From 3e805202e49b8d75d53b69accf3fcc53901dbc20 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Wed, 22 Aug 2001 20:30:11 +0000 Subject: Fix the improper construction of the new folder's physical URI. 2001-08-22 Peter Williams * e-local-storage.c (async_xfer_folder_callback): Fix the improper construction of the new folder's physical URI. svn path=/trunk/; revision=12391 --- shell/ChangeLog | 5 +++++ shell/e-local-storage.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 7dd7fbe112..0fd1604075 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2001-08-22 Peter Williams + + * e-local-storage.c (async_xfer_folder_callback): Fix the improper + construction of the new folder's physical URI. + 2001-08-22 Ettore Perazzoli * e-local-storage.c (remove_folder): Don't remove the folder diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c index 4685aa5c7d..5707c55aa1 100644 --- a/shell/e-local-storage.c +++ b/shell/e-local-storage.c @@ -805,8 +805,9 @@ async_xfer_folder_callback (EvolutionShellComponentClient *shell_component_clien XferItem *item; EFolder *source_folder; EFolder *destination_folder; + char *dest_physical_path; char *new_physical_uri; - + /* FIXME handle errors. */ xfer_data = (XferData *) callback_data; @@ -818,7 +819,9 @@ async_xfer_folder_callback (EvolutionShellComponentClient *shell_component_clien e_folder_get_type_string (source_folder), e_folder_get_description (source_folder)); - new_physical_uri = g_strconcat ("file:///", item->destination_path, NULL); + dest_physical_path = e_path_to_physical (xfer_data->local_storage->priv->base_path, item->destination_path); + new_physical_uri = g_strconcat ("file://", dest_physical_path, NULL); + g_free (dest_physical_path); e_folder_set_physical_uri (destination_folder, new_physical_uri); g_free (new_physical_uri); -- cgit