From f7701d3a142538ee8f4f09a487f327bda5a6950d Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Thu, 18 Jun 2009 17:39:37 +0200 Subject: [PATCH] Only get the account id if the account is remote --- src/hildon2/modest-platform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index 3b73d47..8ab5e73 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -958,10 +958,10 @@ folder_picker_new (TnyFolderStore *suggested, FolderPickerHelper *helper) folder_picker_set_store (GTK_BUTTON (button), suggested); - if (TNY_IS_ACCOUNT (suggested) && - !modest_tny_account_is_virtual_local_folders (TNY_ACCOUNT (suggested)) && - !modest_tny_account_is_memory_card_account (TNY_ACCOUNT (suggested))) { - acc_id = tny_account_get_id ((TnyAccount *) suggested); + if (TNY_IS_ACCOUNT (suggested)) { + if (!modest_tny_account_is_virtual_local_folders (TNY_ACCOUNT (suggested)) && + !modest_tny_account_is_memory_card_account (TNY_ACCOUNT (suggested))) + acc_id = tny_account_get_id ((TnyAccount *) suggested); } else { TnyAccount *account = modest_tny_folder_get_account ((TnyFolder *) suggested); if (account) { -- 1.7.9.5