From 7a2d49142aa1db37d51ea6734f7bfe28d8c5a788 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Wed, 14 May 2008 17:11:45 +0000 Subject: [PATCH] * Fixes NB#85502, show an error when the mail applications reports error sendings due to connection failures pmo-trunk-r4528 --- src/modest-tny-send-queue.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modest-tny-send-queue.c b/src/modest-tny-send-queue.c index 3b27216..d4db8d7 100644 --- a/src/modest-tny-send-queue.c +++ b/src/modest-tny-send-queue.c @@ -684,10 +684,13 @@ _on_msg_error_happened (TnySendQueue *self, /* Keep in queue so that we remember that the opertion has failed */ /* and was not just cancelled */ - if (err->code == TNY_SYSTEM_ERROR_CANCEL) + if (err->code == TNY_SYSTEM_ERROR_CANCEL) { info->status = MODEST_TNY_SEND_QUEUE_SUSPENDED; - else + } else { + if (err->code == TNY_SERVICE_ERROR_CONNECT) + modest_platform_run_alert_dialog (_("emev_ib_ui_smtp_server_invalid"), FALSE); info->status = MODEST_TNY_SEND_QUEUE_FAILED; + } priv->current = NULL; /* Notify status has changed */ -- 1.7.9.5