mirror of https://github.com/djcb/mu.git
* back out the threading patch for now, it gives errors
ERROR:mu-container.c:182:mu_container_append_children: assertion failed: (c != child)
This commit is contained in:
parent
f3654aa22b
commit
5d63663ac6
|
@ -283,20 +283,11 @@ handle_references (GHashTable *id_table, MuContainer *c)
|
|||
Note that at all times, the various ``parent'' and ``child'' fields
|
||||
must be kept inter-consistent. */
|
||||
|
||||
/* optimization: if the the message was newly added, it's by
|
||||
* definition not reachable yet */
|
||||
|
||||
if (parent && c && !(c->child && mu_container_reachable (c->child, parent))) {
|
||||
|
||||
/* if c already has a parent, remove c from its parent children
|
||||
and reparent it, as now we know who is c's parent reliably */
|
||||
if (c->parent) {
|
||||
mu_container_remove_child(c->parent, c);
|
||||
c->next = c->last = c->parent = NULL;
|
||||
}
|
||||
/* optimization: if the the message was newly added, it's by
|
||||
* definition not reachable yet */
|
||||
|
||||
if (child_elligible (parent, c, created))
|
||||
parent = mu_container_append_children (parent, c);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue