[evolution] Bug #676563 - Cannot create folders directly under store node



commit 40055efcb6fb8f5913766d9c57444491b075f590
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 7 11:42:48 2012 +0200

    Bug #676563 - Cannot create folders directly under store node

 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 823ab37..3cea8d3 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]