diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-06-14 00:30:07 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-14 00:30:07 +0800 |
commit | 49ba34088bcdb9ab9cfae0c2b7fe11452fb60e24 (patch) | |
tree | ced4dd4c45416dcf15cf33b85c6b5103f5a5388a /mail/em-folder-utils.c | |
parent | be8ee5393471a83b24aed4de1669afd723cb3168 (diff) | |
download | gsoc2013-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.c | 5 |
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(); } |