diff options
| author | Nicolas Cornu <nicolac76@yahoo.fr> | 2012-07-30 00:16:47 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-07-30 09:01:42 +0200 |
| commit | b9d934ae6e662cc45e68e5d64249384cca958abc (patch) | |
| tree | 2fd354e944ab9d94b5f798f4e1b79ec984fce7da /src/base/QXmppBookmarkSet.cpp | |
| parent | 00b2ce0b5c5c8ae32d073d01f0815ecd366cd834 (diff) | |
| download | qxmpp-b9d934ae6e662cc45e68e5d64249384cca958abc.tar.gz | |
Fix check of autojoin attribute in Bookmarks
If you look at http://www.w3.org/TR/xmlschema-2/#boolean xs::boolean can be "true", "false", "1" or "0".
Diffstat (limited to 'src/base/QXmppBookmarkSet.cpp')
| -rw-r--r-- | src/base/QXmppBookmarkSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/QXmppBookmarkSet.cpp b/src/base/QXmppBookmarkSet.cpp index 86330ad0..c36d3a93 100644 --- a/src/base/QXmppBookmarkSet.cpp +++ b/src/base/QXmppBookmarkSet.cpp @@ -189,7 +189,7 @@ void QXmppBookmarkSet::parse(const QDomElement &element) if (childElement.tagName() == "conference") { QXmppBookmarkConference conference; - conference.setAutoJoin(childElement.attribute("autojoin") == "true"); + conference.setAutoJoin(childElement.attribute("autojoin") == "true" || childElement.attribut("autojoin") == "1"); conference.setJid(childElement.attribute("jid")); conference.setName(childElement.attribute("name")); conference.setNickName(childElement.firstChildElement("nick").text()); |
