aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-14 00:30:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-14 00:30:07 +0800
commit49ba34088bcdb9ab9cfae0c2b7fe11452fb60e24 (patch)
treeced4dd4c45416dcf15cf33b85c6b5103f5a5388a /mail/em-folder-utils.c
parentbe8ee5393471a83b24aed4de1669afd723cb3168 (diff)
downloadgsoc2013-evolution-49ba34088bcdb9ab9cfae0c2b7fe11452fb60e24.tar.gz
gsoc2013-evolution-49ba34088bcdb9ab9cfae0c2b7fe11452fb60e24.tar.zst
gsoc2013-evolution-49ba34088bcdb9ab9cfae0c2b7fe11452fb60e24.zip
Clean up EMFolderTreeModel.
Diffstat (limited to 'mail/em-folder-utils.c')
-rw-r--r--mail/em-folder-utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 4ab00e237e..fbd2450012 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -639,6 +639,7 @@ static void
emfu_popup_new_folder_response (EMFolderSelector *emfs, gint response, gpointer data)
{
EMFolderTreeModelStoreInfo *si;
+ EMFolderTreeModel *model;
const gchar *uri, *path;
CamelException ex;
CamelStore *store;
@@ -662,7 +663,9 @@ emfu_popup_new_folder_response (EMFolderSelector *emfs, gint response, gpointer
return;
}
- if (!(si = em_folder_tree_get_model_storeinfo (emfs->emft, store))) {
+ model = em_folder_tree_get_model (emfs->emft);
+ si = em_folder_tree_model_lookup_store_info (model, store);
+ if (si == NULL) {
camel_object_unref (store);
g_return_if_reached();
}