From: Sergio Villar SenĂ­n Date: Wed, 13 May 2009 11:38:09 +0000 (+0200) Subject: Do cancel "Send&receive" operation when closing the accounts window X-Git-Tag: 3.0.17-rc5~12 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=ea938d374fc83af1645cfbe6d0b23d221cce83d8;hp=6d2997c529d0f0eef75ee56242963c29164c1ae7 Do cancel "Send&receive" operation when closing the accounts window --- 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));