aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QXmppElement.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/QXmppElement.cpp b/src/QXmppElement.cpp
index 2db654e5..198cd40e 100644
--- a/src/QXmppElement.cpp
+++ b/src/QXmppElement.cpp
@@ -148,6 +148,7 @@ void QXmppElement::appendChild(const QXmppElement &child)
child.d->parent->children.removeAll(child.d);
else
child.d->counter.ref();
+ child.d->parent = d;
d->children.append(child.d);
}