diff options
author | Milan Crha <mcrha@redhat.com> | 2012-06-07 17:42:48 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-06-07 17:42:48 +0800 |
commit | 40055efcb6fb8f5913766d9c57444491b075f590 (patch) | |
tree | 6cf090574be42d9c57f0b2324526562c99693599 /mail | |
parent | bdf653416bbcd0743bf327ea59b0622f9fef301d (diff) | |
download | gsoc2013-evolution-40055efcb6fb8f5913766d9c57444491b075f590.tar gsoc2013-evolution-40055efcb6fb8f5913766d9c57444491b075f590.tar.gz gsoc2013-evolution-40055efcb6fb8f5913766d9c57444491b075f590.tar.bz2 gsoc2013-evolution-40055efcb6fb8f5913766d9c57444491b075f590.tar.lz gsoc2013-evolution-40055efcb6fb8f5913766d9c57444491b075f590.tar.xz gsoc2013-evolution-40055efcb6fb8f5913766d9c57444491b075f590.tar.zst gsoc2013-evolution-40055efcb6fb8f5913766d9c57444491b075f590.zip |
Bug #676563 - Cannot create folders directly under store node
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-folder-tree.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 823ab379ae..3cea8d335f 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -533,7 +533,7 @@ folder_tree_expand_node (const gchar *key, g_object_unref (service); - if (p != NULL) { + if (p != NULL && p[1]) { if (!(row = g_hash_table_lookup (si->full_hash, p + 1))) return; } else @@ -3007,6 +3007,9 @@ em_folder_tree_set_selected_list (EMFolderTree *folder_tree, end = strrchr (expand_key, '/'); } while (end); + if (expand_only) + folder_tree_free_select_uri (u); + g_free (expand_key); } } @@ -3378,6 +3381,8 @@ em_folder_tree_get_selected_uri (EMFolderTree *folder_tree) if (CAMEL_IS_STORE (store) && folder_name != NULL) folder_uri = e_mail_folder_uri_build (store, folder_name); + else if (CAMEL_IS_STORE (store)) + folder_uri = e_mail_folder_uri_build (store, ""); g_free (folder_name); |