From: Alberto Garcia Date: Wed, 28 Nov 2007 10:28:10 +0000 (+0000) Subject: Update all accounts after they have been modified, X-Git-Tag: git_migration_finished~2003 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=eec4b19f682dc36d0dcafd63b6058b979a98a1fc Update all accounts after they have been modified, no matter their status Fixes NB#73627 pmo-trunk-r3832 --- diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 5edaf83..9ed5db9 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -473,15 +473,10 @@ on_account_changed (ModestAccountMgr *acc_mgr, TnyAccount *tny_account; tny_account = TNY_ACCOUNT (tny_iterator_get_current (iter)); if (tny_account) { - TnyConnectionStatus conn_status = tny_account_get_connection_status (tny_account); - - if (conn_status != TNY_CONNECTION_STATUS_RECONNECTING && - conn_status != TNY_CONNECTION_STATUS_INIT) { - if (!strcmp (tny_account_get_id (tny_account), account_name)) { - found = TRUE; - modest_tny_account_update_from_account (tny_account); - g_signal_emit (G_OBJECT(self), signals[ACCOUNT_CHANGED_SIGNAL], 0, tny_account); - } + if (!strcmp (tny_account_get_id (tny_account), account_name)) { + found = TRUE; + modest_tny_account_update_from_account (tny_account); + g_signal_emit (G_OBJECT(self), signals[ACCOUNT_CHANGED_SIGNAL], 0, tny_account); } g_object_unref (tny_account); }