aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-selector.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-02-02 16:10:47 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-02-02 16:10:47 +0800
commita97325504c5729209e1e16d26b89961e59c13e02 (patch)
tree682f09749e3bed7ea9927688fa01ee5bb878beab /mail/em-folder-selector.c
parenta8d1cfd503a41310aaec32e2e9393dc4a4651073 (diff)
downloadgsoc2013-evolution-a97325504c5729209e1e16d26b89961e59c13e02.tar
gsoc2013-evolution-a97325504c5729209e1e16d26b89961e59c13e02.tar.gz
gsoc2013-evolution-a97325504c5729209e1e16d26b89961e59c13e02.tar.bz2
gsoc2013-evolution-a97325504c5729209e1e16d26b89961e59c13e02.tar.lz
gsoc2013-evolution-a97325504c5729209e1e16d26b89961e59c13e02.tar.xz
gsoc2013-evolution-a97325504c5729209e1e16d26b89961e59c13e02.tar.zst
gsoc2013-evolution-a97325504c5729209e1e16d26b89961e59c13e02.zip
** See bug #53549.
2004-02-02 Not Zed <NotZed@Ximian.com> ** See bug #53549. * em-folder-selector.c: Fix handling a parent path of "/". * mail-ops.c (mark_junk_mark): removed the really innacurate cut and paste comment. This has nothing to do with filter_folder. svn path=/trunk/; revision=24565
Diffstat (limited to 'mail/em-folder-selector.c')
-rw-r--r--mail/em-folder-selector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c
index 64f0b05da8..2d7c528df5 100644
--- a/mail/em-folder-selector.c
+++ b/mail/em-folder-selector.c
@@ -315,8 +315,8 @@ em_folder_selector_get_selected_uri (EMFolderSelector *emfs)
camel_url_set_fragment (url, newpath);
} else {
- newpath = g_strdup_printf ("%s/%s", url->path ? url->path : "", name);
- camel_url_set_path (url, newpath);
+ newpath = g_strdup_printf("%s/%s", (url->path == NULL || strcmp(url->path, "/") == 0) ? "":url->path, name);
+ camel_url_set_path(url, newpath);
}
g_free (emfs->selected_path);