aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppVersionIq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QXmppVersionIq.cpp')
-rw-r--r--src/QXmppVersionIq.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/QXmppVersionIq.cpp b/src/QXmppVersionIq.cpp
index e5f128f3..9b28e4bb 100644
--- a/src/QXmppVersionIq.cpp
+++ b/src/QXmppVersionIq.cpp
@@ -87,9 +87,9 @@ bool QXmppVersionIq::isVersionIq(const QDomElement &element)
void QXmppVersionIq::parseElementFromChild(const QDomElement &element)
{
QDomElement queryElement = element.firstChildElement("query");
- m_name = element.firstChildElement("name").text();
- m_os = element.firstChildElement("os").text();
- m_version = element.firstChildElement("version").text();
+ m_name = queryElement.firstChildElement("name").text();
+ m_os = queryElement.firstChildElement("os").text();
+ m_version = queryElement.firstChildElement("version").text();
}
void QXmppVersionIq::toXmlElementFromChild(QXmlStreamWriter *writer) const