aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-selector.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-selector.c')
-rw-r--r--mail/em-folder-selector.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c
index 4a2ac4f2af..b91fc1ce5b 100644
--- a/mail/em-folder-selector.c
+++ b/mail/em-folder-selector.c
@@ -282,6 +282,9 @@ em_folder_selector_get_selected_uri (EMFolderSelector *emfs)
char *newpath;
url = camel_url_new (uri, NULL);
+ /* FIXME: if we try to create a toplevel folder on a
+ * store that uses fragments, url->fragment will be
+ * NULL and so the resultant url will be incorrect */
newpath = g_strdup_printf ("%s/%s", url->fragment ? url->fragment : url->path, gtk_entry_get_text (emfs->name_entry));
if (url->fragment)
camel_url_set_fragment (url, newpath);