* Do not check if the account is connected in the case of local accounts. Thx Dape...
authorSergio Villar Senin <svillar@igalia.com>
Tue, 4 Dec 2007 13:08:20 +0000 (13:08 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 4 Dec 2007 13:08:20 +0000 (13:08 +0000)
pmo-trunk-r3863

src/modest-ui-actions.c

index 777ec61..34a0d7b 100644 (file)
@@ -1055,7 +1055,9 @@ open_msgs_performer(gboolean canceled,
        not_opened_headers = TNY_LIST (user_data);
 
        status = tny_account_get_connection_status (account);
-       if (err || canceled || status != TNY_CONNECTION_STATUS_CONNECTED) {
+       if (err || canceled || 
+           (modest_tny_folder_store_is_remote (TNY_FOLDER_STORE (account)) &&
+                                               status != TNY_CONNECTION_STATUS_CONNECTED)) {
                /* TODO: Show an error ? */
                goto clean;
        }