diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-03 12:51:55 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-03 12:51:55 +0200 |
| commit | 7dff3ee250cfea98be51843b3f4be1f8f909540f (patch) | |
| tree | 51d07e7af1cd05bc6701969a1c2b6ac392e58f15 /src/base/QXmppIq.cpp | |
| parent | 18a9380db083a9b4d195a337b87b7b3c142d28e9 (diff) | |
| download | qxmpp-7dff3ee250cfea98be51843b3f4be1f8f909540f.tar.gz | |
revert previous commit
Diffstat (limited to 'src/base/QXmppIq.cpp')
| -rw-r--r-- | src/base/QXmppIq.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/QXmppIq.cpp b/src/base/QXmppIq.cpp index 635d5447..351eeca7 100644 --- a/src/base/QXmppIq.cpp +++ b/src/base/QXmppIq.cpp @@ -123,10 +123,12 @@ void QXmppIq::toXml( QXmlStreamWriter *xmlWriter ) const { xmlWriter->writeStartElement("iq"); - QXmppStanza::toXmlElementFromChild(xmlWriter); + helperToXmlAddAttribute(xmlWriter, "id", id()); + helperToXmlAddAttribute(xmlWriter, "to", to()); + helperToXmlAddAttribute(xmlWriter, "from", from()); helperToXmlAddAttribute(xmlWriter, "type", iq_types[d->type]); toXmlElementFromChild(xmlWriter); - + error().toXml(xmlWriter); xmlWriter->writeEndElement(); } |
