aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-storage.c')
-rw-r--r--shell/e-storage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/e-storage.c b/shell/e-storage.c
index f482a0f6ce..0dc4d9a2f4 100644
--- a/shell/e-storage.c
+++ b/shell/e-storage.c
@@ -467,6 +467,11 @@ e_storage_async_xfer_folder (EStorage *storage,
g_return_if_fail (destination_path != NULL);
g_return_if_fail (g_path_is_absolute (destination_path));
+ if (strcmp (source_path, destination_path) == 0) {
+ (* callback) (storage, E_STORAGE_OK, data);
+ return;
+ }
+
if (remove_source) {
int destination_len;
int source_len;