diff options
author | Chenthill Palanisamy <pchenthill@novell.com> | 2011-06-07 21:35:03 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:26 +0800 |
commit | 8df5f498514789dd4f596483a9daa0da93b5136f (patch) | |
tree | 673541ffb857d7c98783dce333541a111ad9a0c1 /mail | |
parent | 739b0b34f1fb79200792b069d5f0d31bf508887d (diff) | |
download | gsoc2013-evolution-8df5f498514789dd4f596483a9daa0da93b5136f.tar gsoc2013-evolution-8df5f498514789dd4f596483a9daa0da93b5136f.tar.gz gsoc2013-evolution-8df5f498514789dd4f596483a9daa0da93b5136f.tar.bz2 gsoc2013-evolution-8df5f498514789dd4f596483a9daa0da93b5136f.tar.lz gsoc2013-evolution-8df5f498514789dd4f596483a9daa0da93b5136f.tar.xz gsoc2013-evolution-8df5f498514789dd4f596483a9daa0da93b5136f.tar.zst gsoc2013-evolution-8df5f498514789dd4f596483a9daa0da93b5136f.zip |
Fixes a crash while creating VeeFolders at the root level.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-folder-utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index 27ba1c17e8..589729bcca 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -594,9 +594,15 @@ em_folder_utils_create_folder (GtkWindow *parent, /* HACK: we need to create vfolders using the vfolder editor */ if (CAMEL_IS_VEE_STORE (store)) { EFilterRule *rule; + const gchar *skip_slash; + + if (*folder_name == '/') + skip_slash = folder_name + 1; + else + skip_slash = folder_name; rule = em_vfolder_rule_new (backend); - e_filter_rule_set_name (rule, folder_name); + e_filter_rule_set_name (rule, skip_slash); vfolder_gui_add_rule (EM_VFOLDER_RULE (rule)); } else { AsyncContext *context; |