diff options
Diffstat (limited to 'source/QXmppIq.cpp')
| -rw-r--r-- | source/QXmppIq.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/QXmppIq.cpp b/source/QXmppIq.cpp index 55d72748..c4215d5f 100644 --- a/source/QXmppIq.cpp +++ b/source/QXmppIq.cpp @@ -52,9 +52,12 @@ void QXmppIq::setType(QXmppIq::Type type) void QXmppIq::parse(const QDomElement &element) { QXmppStanza::parse(element); - setTypeFromStr(element.attribute("type")); + parseElementFromChild(element); +} +void QXmppIq::parseElementFromChild(const QDomElement &element) +{ QXmppElementList extensions; QDomElement itemElement = element.firstChildElement(); while (!itemElement.isNull()) |
