projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Fixes NB#91102, reversed a list as the comment suggested
[modest]
/
src
/
modest-mail-operation-queue.c
diff --git
a/src/modest-mail-operation-queue.c
b/src/modest-mail-operation-queue.c
index
804a656
..
1ca4450
100644
(file)
--- 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);
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))
for(cur = operations_to_cancel; cur != NULL; cur = cur->next) {
if (!MODEST_IS_MAIL_OPERATION(cur->data))