From: Sergio Villar Senin Date: Wed, 5 Dec 2007 12:05:44 +0000 (+0000) Subject: * Fixes NB#78338, the summary.mmap files are deleted once the account is removed X-Git-Tag: git_migration_finished~1961 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=e6f1a024d83c35ea6707defa9f71360901834ef2 * Fixes NB#78338, the summary.mmap files are deleted once the account is removed pmo-trunk-r3876 --- diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 1a5324e..8bdbe6d 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -1657,14 +1657,6 @@ on_account_disconnect_when_removing (TnyCamelAccount *account, self = MODEST_TNY_ACCOUNT_STORE (user_data); priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE (self); - if (canceled || err) { - /* The account was not cancelled */ - } else { - /* Clear the cache if it's an store account */ - if (TNY_IS_STORE_ACCOUNT (account)) - tny_store_account_delete_cache (TNY_STORE_ACCOUNT (account)); - } - /* Remove it from the list of accounts */ if (TNY_IS_STORE_ACCOUNT (account)) tny_list_remove (priv->store_accounts, (GObject *) account); @@ -1677,6 +1669,10 @@ on_account_disconnect_when_removing (TnyCamelAccount *account, /* Unref the extra reference added by get_server_account */ g_object_unref (account); + + /* Clear the cache if it's an store account */ + if (TNY_IS_STORE_ACCOUNT (account)) + tny_store_account_delete_cache (TNY_STORE_ACCOUNT (account)); } static void