From 5d212b90576c695fde9acf7f134d73910e51c18a Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 22 Feb 2010 08:44:41 +0000 Subject: handle the "NotSet" value of a roster item subscription type --- source/QXmppRosterIq.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/QXmppRosterIq.cpp') diff --git a/source/QXmppRosterIq.cpp b/source/QXmppRosterIq.cpp index 52686563..ab298913 100644 --- a/source/QXmppRosterIq.cpp +++ b/source/QXmppRosterIq.cpp @@ -140,7 +140,9 @@ void QXmppRosterIq::Item::setSubscriptionType(SubscriptionType type) void QXmppRosterIq::Item::setSubscriptionTypeFromStr(const QString& type) { - if(type == "none") + if(type == "") + setSubscriptionType(NotSet); + else if(type == "none") setSubscriptionType(None); else if(type == "both") setSubscriptionType(Both); -- cgit v1.2.3