aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-03-16 04:02:11 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-03-16 04:02:11 +0800
commitc9a60dd957abdf0eae42b9fb968b08929e0cfaf7 (patch)
treee456527bafe786409ee2f863e13310ac204aed00 /camel/camel-folder.c
parentae8d1fe9e2e669d947c6198cb0707ef53139511b (diff)
downloadgsoc2013-evolution-c9a60dd957abdf0eae42b9fb968b08929e0cfaf7.tar.gz
gsoc2013-evolution-c9a60dd957abdf0eae42b9fb968b08929e0cfaf7.tar.zst
gsoc2013-evolution-c9a60dd957abdf0eae42b9fb968b08929e0cfaf7.zip
Always use '/' to derive the basename of the folder. folder->full_name is
2004-03-15 Jeffrey Stedfast <fejj@ximian.com> * camel-folder.c (folder_rename): Always use '/' to derive the basename of the folder. folder->full_name is always the UNIX-path evrsion of the folder name, no matter what the actual path delimeter is on the underlying store. svn path=/trunk/; revision=25079
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index 5e971667c4..620881b1fc 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -1442,7 +1442,7 @@ folder_rename (CamelFolder *folder, const char *new)
g_free(folder->full_name);
folder->full_name = g_strdup(new);
g_free(folder->name);
- tmp = strrchr(new, folder->parent_store->dir_sep);
+ tmp = strrchr(new, '/');
folder->name = g_strdup(tmp?tmp+1:new);
}