From: Philip Van Hoof Date: Tue, 10 Jul 2007 14:32:16 +0000 (+0000) Subject: Updated to the new tny_session_camel_set_initialized API X-Git-Tag: git_migration_finished~2866 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=50376b8a5416691d80abc4c4a3cb4ef48f28aefe Updated to the new tny_session_camel_set_initialized API pmo-trunk-r2672 --- diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 36cdff7..de071a6 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -448,7 +448,6 @@ gboolean on_idle_wrong_password (gpointer user_data) found = g_hash_table_lookup_extended (priv->account_settings_dialog_hash, modest_account_name, NULL, (gpointer*)&dialog_as_gpointer); } - ModestAccountSettingsDialog *dialog = dialog_as_gpointer; ModestWindow *main_window = @@ -1014,6 +1013,9 @@ modest_tny_account_store_get_accounts (TnyAccountStore *self, TnyList *list, TNY_ACCOUNT_STORE_STORE_ACCOUNTS); modest_tny_account_store_get_accounts (self, list, TNY_ACCOUNT_STORE_TRANSPORT_ACCOUNTS); + + tny_session_camel_set_initialized (priv->session); + return; } @@ -1022,12 +1024,16 @@ modest_tny_account_store_get_accounts (TnyAccountStore *self, TnyList *list, get_server_accounts (self, list, TNY_ACCOUNT_TYPE_STORE); else get_cached_accounts (self, list, TNY_ACCOUNT_TYPE_STORE); + + tny_session_camel_set_initialized (priv->session); } else if (request_type == TNY_ACCOUNT_STORE_TRANSPORT_ACCOUNTS) { if (!priv->transport_accounts) get_server_accounts (self, list, TNY_ACCOUNT_TYPE_TRANSPORT); else get_cached_accounts (self, list, TNY_ACCOUNT_TYPE_TRANSPORT); + + tny_session_camel_set_initialized (priv->session); } else g_return_if_reached (); /* incorrect req type */ }