aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-thread.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-05 13:04:53 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-05 13:04:53 +0800
commitf1f97ce865d29370b45ce08380cd56ab24f26a78 (patch)
treed5bff883183f3f03c5d1dfdf8d41cec9c6134523 /camel/camel-folder-thread.c
parent282c5a057f30c800298594467a11778e1ae63e1f (diff)
downloadgsoc2013-evolution-f1f97ce865d29370b45ce08380cd56ab24f26a78.tar.gz
gsoc2013-evolution-f1f97ce865d29370b45ce08380cd56ab24f26a78.tar.zst
gsoc2013-evolution-f1f97ce865d29370b45ce08380cd56ab24f26a78.zip
When we drop a fake node, dont skip checking the next in the list.
2001-02-02 Not Zed <NotZed@Ximian.com> * camel-folder-thread.c (camel_folder_thread_messages_new): When we drop a fake node, dont skip checking the next in the list. (camel_folder_thread_messages_new): Add an assertion check just to make sure we dont get any pseudo nodes, and spit a warning if we do. svn path=/trunk/; revision=7965
Diffstat (limited to 'camel/camel-folder-thread.c')
-rw-r--r--camel/camel-folder-thread.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/camel/camel-folder-thread.c b/camel/camel-folder-thread.c
index 8f55452c98..af8872c619 100644
--- a/camel/camel-folder-thread.c
+++ b/camel/camel-folder-thread.c
@@ -554,13 +554,20 @@ camel_folder_thread_messages_new(CamelFolder *folder, GPtrArray *uids)
scan->next = newtop->next;
/* and link the now 'real' node into the list */
newtop->next = child->next;
- c = newtop->next;
+ c = newtop;
e_memchunk_free(thread->node_chunks, child);
} else {
c = child;
}
}
+ /* this is only debug assertion stuff */
+ c = (CamelFolderThreadNode *)&head;
+ while (c->next) {
+ c = c->next;
+ if (c->message == NULL)
+ g_warning("threading missed removing a pseudo node: %s\n", c->root_subject);
+ }
thread->tree = head;