From e69b5be4067684cc2fe642f797a5d9ef9320a58c Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 28 May 2007 08:18:45 +0000 Subject: [PATCH] * Only return the local account if we're asking for store accounts pmo-trunk-r1978 --- src/modest-tny-account-store.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.9.5