From b4c7d9a00280886971f01f5de922416899008b35 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Tue, 7 Sep 2010 11:03:07 +0000 Subject: bugfix --- src/QXmppVersionIq.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/QXmppVersionIq.cpp') 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 -- cgit v1.2.3