From: Sergio Villar Senin Date: Mon, 28 May 2007 08:18:45 +0000 (+0000) Subject: * Only return the local account if we're asking for store accounts X-Git-Tag: git_migration_finished~3508 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=e69b5be4067684cc2fe642f797a5d9ef9320a58c * Only return the local account if we're asking for store accounts pmo-trunk-r1978 --- diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 46773b5..a8ece28 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -944,7 +944,8 @@ modest_tny_account_store_get_tny_account_by_account (ModestTnyAccountStore *self priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE(self); /* Special case for the local account */ - if (!strcmp (account_name, MODEST_ACTUAL_LOCAL_FOLDERS_ACCOUNT_ID)) { + if (!strcmp (account_name, MODEST_ACTUAL_LOCAL_FOLDERS_ACCOUNT_ID) && + type == TNY_ACCOUNT_TYPE_STORE) { id = g_strdup (MODEST_ACTUAL_LOCAL_FOLDERS_ACCOUNT_ID); } else { ModestAccountData *account_data;