aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-23 04:30:11 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-23 04:30:11 +0800
commit3e805202e49b8d75d53b69accf3fcc53901dbc20 (patch)
tree5c76b4636ce83545fd03f1aab6a4f67c9ad728b8
parent57516b50dbdd6a4b24a5fab7ab57b8cce7c086fd (diff)
downloadgsoc2013-evolution-3e805202e49b8d75d53b69accf3fcc53901dbc20.tar.gz
gsoc2013-evolution-3e805202e49b8d75d53b69accf3fcc53901dbc20.tar.zst
gsoc2013-evolution-3e805202e49b8d75d53b69accf3fcc53901dbc20.zip
Fix the improper construction of the new folder's physical URI.
2001-08-22 Peter Williams <peterw@ximian.com> * e-local-storage.c (async_xfer_folder_callback): Fix the improper construction of the new folder's physical URI. svn path=/trunk/; revision=12391
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-local-storage.c7
2 files changed, 10 insertions, 2 deletions
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 <peterw@ximian.com>
+
+ * e-local-storage.c (async_xfer_folder_callback): Fix the improper
+ construction of the new folder's physical URI.
+
2001-08-22 Ettore Perazzoli <ettore@ximian.com>
* 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);