Merged fix for bug 85818, from trunk.
authorVivek Sekar <viveksekar@gmail.com>
Tue, 29 Jul 2008 07:09:53 +0000 (07:09 +0000)
committerVivek Sekar <viveksekar@gmail.com>
Tue, 29 Jul 2008 07:09:53 +0000 (07:09 +0000)
pmo-diablo-r5183

src/modest-tny-account-store.c

index e83d10d..4b8d3cf 100644 (file)
@@ -1855,8 +1855,8 @@ remove_transport_account (ModestTnyAccountStore *self,
        /* Remove it from the list of accounts and notify the
           observers. Do not need to wait for account
           disconnection */
-       tny_list_remove (priv->transport_accounts, (GObject *) transport_account);
        g_signal_emit (G_OBJECT (self), signals [ACCOUNT_REMOVED_SIGNAL], 0, transport_account);
+       tny_list_remove (priv->transport_accounts, (GObject *) transport_account);
                
        /* Remove the OUTBOX of the account from the global outbox */
        outbox = g_hash_table_lookup (priv->outbox_of_transport, transport_account);