2007-06-07 Murray Cumming <murrayc@murrayc.com>
+ * src/modest-tny-account-store.c: (get_server_accounts):
+ Create the local folders account only once, not once for each outbox, and
+ not only when there are some outboxes.
+
+2007-06-07 Murray Cumming <murrayc@murrayc.com>
+
* src/widgets/modest-folder-view.c: (update_model): Comment out some
code that is causing a crash at startup. Sergio says that he is fixing this.
create_per_account_local_outbox_folders (self);
}
+ /* Also add the local folder pseudo-account: */
+ TnyAccount *tny_account =
+ modest_tny_account_new_for_local_folders (priv->account_mgr,
+ priv->session, NULL);
+
/* Add them to the TnyList: */
if (priv->store_accounts_outboxes) {
GSList *iter = NULL;
accounts = g_slist_append (accounts, outbox_account);
}
-
- /* Also add the local folder pseudo-account: */
- TnyAccount *tny_account =
- modest_tny_account_new_for_local_folders (priv->account_mgr,
- priv->session, NULL);
/* Add a merged folder, merging all the per-account outbox folders: */
modest_tny_local_folders_account_add_merged_outbox_folders (
MODEST_TNY_LOCAL_FOLDERS_ACCOUNT (tny_account), priv->store_accounts_outboxes);
- if (list)
- tny_list_prepend (list, G_OBJECT(tny_account));
- accounts = g_slist_append (accounts, tny_account); /* cache it */
-
-
/* We have finished with this temporary list, so free it: */
account_list_free (priv->store_accounts_outboxes);
priv->store_accounts_outboxes = NULL;
}
+
+ if (list)
+ tny_list_prepend (list, G_OBJECT(tny_account));
+ accounts = g_slist_append (accounts, tny_account); /* cache it */
}
if (type == TNY_ACCOUNT_TYPE_STORE) {