+2007-06-12 Murray Cumming <murrayc@murrayc.com>
+
+ * src/modest-tny-account-store.c: (get_server_accounts):
+ Call modest_tny_local_folders_account_add_merged_outbox_folders()
+ even when there are no accounts, so that the Outbox folder is always
+ visible. This fixes projects.maemo.org bug NB#60158.
+
2007-06-12 Murray Cumming <murrayc@murrayc.com>
* src/maemo/modest-main-window.c: (create_details_widget):
g_object_ref (outbox_account);
accounts = g_slist_append (accounts, outbox_account);
}
+ }
+
+ /* 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);
- /* 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 (priv->store_accounts_outboxes) {
/* We have finished with this temporary list, so free it: */
account_list_free (priv->store_accounts_outboxes);
priv->store_accounts_outboxes = NULL;
}
/* Add the merged outbox folder to the virtual local-folders store: */
+ printf ("Debug: %s: adding merged outbox.\n", __FUNCTION__);
modest_tny_local_folders_account_add_extra_folder (self, TNY_FOLDER(merged_outbox));
g_object_unref (merged_outbox);
merged_outbox = NULL;