aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppRosterIq.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-02-22 08:44:41 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-02-22 08:44:41 +0000
commit5d212b90576c695fde9acf7f134d73910e51c18a (patch)
tree330347aeade2698646f857e9d3a4632b8368f8b8 /source/QXmppRosterIq.cpp
parent68b7f71c483fdaa820f95496c6a4b640dd13f610 (diff)
downloadqxmpp-5d212b90576c695fde9acf7f134d73910e51c18a.tar.gz
handle the "NotSet" value of a roster item subscription type
Diffstat (limited to 'source/QXmppRosterIq.cpp')
-rw-r--r--source/QXmppRosterIq.cpp4
1 files changed, 3 insertions, 1 deletions
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);