aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-folder-browser.c13
2 files changed, 10 insertions, 10 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e72b001bc8..7fdc495df2 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-24 Bharath Acharya <abharath@novell.com>
+
+ ** Fix for bug #464338
+
+ * em-folder-browser.c: (emfb_folder_create): Fetches the CamelFolderInfo
+ from the EMFolderTree.
+
2007-08-24 Li Yuan <li.yuan@sun.com>
* mail-config.glade:
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index df97444b3e..154c3fcabc 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -1429,25 +1429,18 @@ emfb_folder_create(BonoboUIComponent *uid, void *data, const char *path)
{
EMFolderBrowser *emfb = data;
CamelFolderInfo *fi = NULL;
- CamelException ex;
EMFolderTree *tree = g_object_get_data (G_OBJECT (emfb), "foldertree");
- camel_exception_init (&ex);
-
/* FIXME: This function MUST be multithreaded
FIXME: This interface should NOT use a folderinfo */
if (emfb->view.folder) {
- if ((fi = camel_store_get_folder_info (emfb->view.folder->parent_store,
- emfb->view.folder->full_name,
- CAMEL_STORE_FOLDER_INFO_FAST,
- &ex)) != NULL)
+ if ((fi = em_folder_tree_get_selected_folder_info (tree)) != NULL) {
em_folder_utils_create_folder(fi, tree);
+ camel_folder_info_free(fi);
+ }
} else {
em_folder_utils_create_folder(NULL, tree);
}
-
-
- camel_exception_clear (&ex);
return;
}