From ea938d374fc83af1645cfbe6d0b23d221cce83d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergio=20Villar=20Sen=C3=ADn?= Date: Wed, 13 May 2009 13:38:09 +0200 Subject: [PATCH] Do cancel "Send&receive" operation when closing the accounts window --- src/hildon2/modest-hildon2-window-mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hildon2/modest-hildon2-window-mgr.c b/src/hildon2/modest-hildon2-window-mgr.c index 5b946e1..0b9f8d4 100644 --- a/src/hildon2/modest-hildon2-window-mgr.c +++ b/src/hildon2/modest-hildon2-window-mgr.c @@ -602,7 +602,9 @@ cancel_window_operations (ModestWindow *window) GSList* tmp_list = NULL; type = modest_mail_operation_get_type_operation (MODEST_MAIL_OPERATION (pending_ops->data)); - if (type == MODEST_MAIL_OPERATION_TYPE_RECEIVE || type == MODEST_MAIL_OPERATION_TYPE_OPEN) { + if (type == MODEST_MAIL_OPERATION_TYPE_RECEIVE || + type == MODEST_MAIL_OPERATION_TYPE_OPEN || + type == MODEST_MAIL_OPERATION_TYPE_SEND_AND_RECEIVE) { modest_mail_operation_cancel (pending_ops->data); } g_object_unref (G_OBJECT (pending_ops->data)); -- 1.7.9.5