aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppMessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppMessage.cpp')
-rw-r--r--source/QXmppMessage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/QXmppMessage.cpp b/source/QXmppMessage.cpp
index 78fc75d4..72ae50c2 100644
--- a/source/QXmppMessage.cpp
+++ b/source/QXmppMessage.cpp
@@ -161,7 +161,7 @@ void QXmppMessage::parse(QDomElement &element)
QDomElement xElement = element.firstChildElement("x");
if(!xElement.isNull())
- setExtension(QXmppElement(xElement));
+ setExtensions(QXmppElement(xElement));
}
void QXmppMessage::toXml(QXmlStreamWriter *xmlWriter) const
@@ -187,7 +187,8 @@ void QXmppMessage::toXml(QXmlStreamWriter *xmlWriter) const
xmlWriter->writeEndElement();
}
- getExtension().toXml(xmlWriter);
+ foreach (const QXmppElement &extension, getExtensions())
+ extension.toXml(xmlWriter);
xmlWriter->writeEndElement();
}