aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-06-07 12:19:07 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-06-07 12:19:07 +0000
commit049ff25e0648ed12bc78ec98cee5e7bcbae938c2 (patch)
tree344666c5049898b21e7e6abcf148c494029008b3 /source
parent4cec473eb18b22bd1e06146f061dcc22679120e3 (diff)
downloadqxmpp-049ff25e0648ed12bc78ec98cee5e7bcbae938c2.tar.gz
fix parsing of QXmppMucAdminIq
Diffstat (limited to 'source')
-rw-r--r--source/QXmppMucIq.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/QXmppMucIq.cpp b/source/QXmppMucIq.cpp
index 42fa50b5..54f62820 100644
--- a/source/QXmppMucIq.cpp
+++ b/source/QXmppMucIq.cpp
@@ -103,10 +103,10 @@ void QXmppMucAdminIq::parse(const QDomElement &element)
while (!child.isNull())
{
QXmppMucAdminIq::Item item;
- item.setAffiliation(element.attribute("affiliation"));
- item.setJid(element.attribute("jid"));
- item.setNick(element.attribute("nick"));
- item.setRole(element.attribute("role"));
+ item.setAffiliation(child.attribute("affiliation"));
+ item.setJid(child.attribute("jid"));
+ item.setNick(child.attribute("nick"));
+ item.setRole(child.attribute("role"));
item.setReason(child.firstChildElement("reason").text());
m_items << item;
child = child.nextSiblingElement("item");