From: Sergio Villar Senin Date: Thu, 30 Oct 2008 09:57:03 +0000 (+0000) Subject: * Fixes NB#91102, reversed a list as the comment suggested X-Git-Tag: git_migration_finished~1084 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=efc6071b3fcbad4b2de9446a8d7ee0e0db568134 * Fixes NB#91102, reversed a list as the comment suggested pmo-trunk-r6184 --- 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))