From b9d934ae6e662cc45e68e5d64249384cca958abc Mon Sep 17 00:00:00 2001 From: Nicolas Cornu Date: Mon, 30 Jul 2012 00:16:47 +0200 Subject: 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". --- src/base/QXmppBookmarkSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/QXmppBookmarkSet.cpp') 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()); -- cgit v1.2.3