diff options
author | Not Zed <NotZed@Ximian.com> | 2004-02-18 10:39:39 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-02-18 10:39:39 +0800 |
commit | a6aebcca77456fe76527f4c2e400aed462f6fff3 (patch) | |
tree | 5c6aa8aaf564318b2b975261c4869775f0370081 /mail/em-folder-tree.c | |
parent | bfe2a883b643e8db7bcc1b0c00156d798d345d06 (diff) | |
download | gsoc2013-evolution-a6aebcca77456fe76527f4c2e400aed462f6fff3.tar.gz gsoc2013-evolution-a6aebcca77456fe76527f4c2e400aed462f6fff3.tar.zst gsoc2013-evolution-a6aebcca77456fe76527f4c2e400aed462f6fff3.zip |
** See bug #54492.
2004-02-18 Not Zed <NotZed@Ximian.com>
** See bug #54492.
* em-folder-tree.c (emft_popup_copy_folder_selected): check the
store flags, not the fragment presence to find out if we use the
fragment as the path.
svn path=/trunk/; revision=24767
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 1ce14f763c..d6cfb977be 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -64,7 +64,6 @@ #define d(x) x - struct _EMFolderTreePrivate { GtkTreeView *treeview; EMFolderTreeModel *model; @@ -1730,12 +1729,12 @@ emft_popup_copy_folder_selected (const char *uri, void *data) struct _copy_folder_data *cfd = data; struct _EMFolderTreePrivate *priv; CamelStore *fromstore, *tostore; - char *tobase, *frombase; + char *tobase = NULL, *frombase; GtkWindow *parent; CamelException ex; GtkWidget *dialog; CamelURL *url; - + if (uri == NULL) { g_free (cfd); return; @@ -1763,13 +1762,13 @@ emft_popup_copy_folder_selected (const char *uri, void *data) } url = camel_url_new (uri, NULL); - if (url->fragment) + if ( ((CamelService *)tostore)->provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH ) tobase = url->fragment; else if (url->path && url->path[0]) - tobase = url->path + 1; - else + tobase = url->path+1; + if (tobase == NULL) tobase = ""; - + emft_copy_folders (tostore, tobase, fromstore, frombase, cfd->delete); camel_url_free (url); |