- /* Add to the list, and notify the observers */
- if (transport_account) {
- /* Add account to the list */
- tny_list_append (priv->transport_accounts, G_OBJECT (transport_account));
- g_assert (TNY_IS_ACCOUNT (transport_account));
-
- /* Create a new pseudo-account with an outbox for this
- transport account and add it to the global outbox
- in the local account */
- add_outbox_from_transport_account_to_global_outbox (self, account, transport_account);
-
- if (notify) {
- TnyAccount *local_account = NULL;
-
- /* Notify that the local account changed */
- local_account = modest_tny_account_store_get_local_folders_account (self);
- g_signal_emit (G_OBJECT (self), signals [ACCOUNT_CHANGED_SIGNAL], 0, local_account);
- g_object_unref (local_account);
-
- /* Notify the observers about the new account */
- g_signal_emit (G_OBJECT (self), signals [ACCOUNT_INSERTED_SIGNAL], 0, transport_account);
- }
+ /* Add accounts to the lists */
+ tny_list_append (priv->store_accounts, G_OBJECT (store_account));
+ tny_list_append (priv->transport_accounts, G_OBJECT (transport_account));