aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppBookmarkSet.cpp
diff options
context:
space:
mode:
authorNicolas Cornu <nicolac76@yahoo.fr>2012-07-30 00:16:47 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-07-30 09:01:42 +0200
commitb9d934ae6e662cc45e68e5d64249384cca958abc (patch)
tree2fd354e944ab9d94b5f798f4e1b79ec984fce7da /src/base/QXmppBookmarkSet.cpp
parent00b2ce0b5c5c8ae32d073d01f0815ecd366cd834 (diff)
downloadqxmpp-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.cpp2
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());