From efc6071b3fcbad4b2de9446a8d7ee0e0db568134 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Thu, 30 Oct 2008 09:57:03 +0000 Subject: [PATCH] * Fixes NB#91102, reversed a list as the comment suggested pmo-trunk-r6184 --- src/modest-mail-operation-queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modest-mail-operation-queue.c b/src/modest-mail-operation-queue.c index 804a656..1ca4450 100644 --- a/src/modest-mail-operation-queue.c +++ b/src/modest-mail-operation-queue.c @@ -431,7 +431,7 @@ modest_mail_operation_queue_cancel_all (ModestMailOperationQueue *self) g_queue_foreach (priv->op_queue, (GFunc) on_cancel_all_foreach, &operations_to_cancel); g_mutex_unlock (priv->queue_lock); - /* TODO: Reverse the list, to remove operations in order? */ + operations_to_cancel = g_slist_reverse (operations_to_cancel); for(cur = operations_to_cancel; cur != NULL; cur = cur->next) { if (!MODEST_IS_MAIL_OPERATION(cur->data)) -- 1.7.9.5