From 352a6bf081e20503a412375644f289ead17702d5 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 3 Dec 2007 11:35:27 +0000 Subject: [PATCH] * Added an extra error check pmo-trunk-r3850 --- src/modest-ui-actions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index fab6fc8..777ec61 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -1050,10 +1050,12 @@ open_msgs_performer(gboolean canceled, gchar *error_msg; ModestTransportStoreProtocol proto; TnyList *not_opened_headers; + TnyConnectionStatus status; not_opened_headers = TNY_LIST (user_data); - if (err) { + status = tny_account_get_connection_status (account); + if (err || canceled || status != TNY_CONNECTION_STATUS_CONNECTED) { /* TODO: Show an error ? */ goto clean; } -- 1.7.9.5