user to download them all */
priv->done = 0;
priv->total = MIN (new_headers->len, info->retrieve_limit);
- while ((msg_num < info->retrieve_limit)) {
+ while ((msg_num < priv->total)) {
TnyHeader *header = TNY_HEADER (g_ptr_array_index (new_headers, msg_num));
TnyFolder *folder = tny_header_get_folder (header);
(info->transport_account);
timeout = g_timeout_add (250, idle_notify_progress, info->mail_op);
- /* TODO: Is this meant to block? */
modest_tny_send_queue_try_to_send (send_queue);
g_source_remove (timeout);
/* Show account details */
modest_main_window_set_contents_style (main_window, MODEST_MAIN_WINDOW_CONTENTS_STYLE_DETAILS);
} else if (modest_tny_folder_store_is_virtual_local_folders (folder_store )) {
- printf ("DEBUG: %s: folder store.\n", __FUNCTION__);
//TODO: Set the virtual folder store as the "active account" somehow:
modest_main_window_set_contents_style (main_window, MODEST_MAIN_WINDOW_CONTENTS_STYLE_DETAILS);
} else {