aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-store.c')
-rw-r--r--mail/e-mail-store.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/e-mail-store.c b/mail/e-mail-store.c
index e5607ef1a3..c5b6be32b4 100644
--- a/mail/e-mail-store.c
+++ b/mail/e-mail-store.c
@@ -169,15 +169,17 @@ mail_store_add (EMailSession *session,
{
EMFolderTreeModel *default_model;
MailFolderCache *folder_cache;
+ CamelProvider *provider;
StoreInfo *store_info;
g_return_if_fail (store_table != NULL);
g_return_if_fail (store != NULL);
g_return_if_fail (CAMEL_IS_STORE (store));
+ provider = camel_service_get_provider (CAMEL_SERVICE (store));
+
g_return_if_fail (
- (CAMEL_SERVICE (store)->provider->flags &
- CAMEL_PROVIDER_IS_STORAGE) != 0);
+ (provider->flags & CAMEL_PROVIDER_IS_STORAGE) != 0);
default_model = em_folder_tree_model_get_default ();
folder_cache = e_mail_session_get_folder_cache (session);